Crate generic_str[−][src]
Expand description
The one and only string type in Rust
let foo: &str = "foo".into();
let expected: &str = "foobar".into();
let mut foobar = foo.to_owned();
foobar.push_str("bar".into());
assert_eq!(foobar, *expected);
Structs
Functions
Converts a slice of bytes to a string slice.
Converts a mutable slice of bytes to a mutable string slice.
Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.
Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.
Type Definitions
Same API as String
but without any re-allocation. Can only hold up to N
bytes
UTF-32 Owned String that has a fixed capacity
Exactly the same as std::string::String
, except generic
UTF-32 Owned String that supports reallocation
Exactly the same as std::primitive::str
, except generic