method bytes.len
The number of bytes.
Example:
fn main() io {
print("{b"\x01\x02\x03".len()}")
}Output
3
pub(api) fn len() -> usizeComplexity. O(1).
Since. 1.0.0-beta
Returns
usize
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:795