// Obtain the number of bytes (not characters) in the given argument. fnbyte_counter<T>(arg: T) ->usizewhere T: AsRef<str> { arg.as_ref().as_bytes().len() }
// Obtain the number of characters (not bytes) in the given argument. fnchar_counter<T>(arg: T) ->usizewhere T: AsRef<str> { arg.as_ref().chars().count() }