Available on crate feature
string only.Expand description
Dynamically sized UTF-8 encoded byte string.
Structs§
- NSTD
String - Dynamically sized UTF-8 encoded byte string.
Functions§
- nstd_
string_ allocator - Returns an immutable reference to a string’s allocator.
- nstd_
string_ as_ bytes - Returns an immutable byte slice of the string’s active data.
- nstd_
string_ as_ ptr - Returns a raw pointer to a string’s memory.
- nstd_
string_ as_ str - Creates a string slice containing the contents of
string. - nstd_
string_ as_ str_ mut - Creates a string slice containing the contents of
string. - nstd_
string_ byte_ len - Returns the number of bytes a string contains.
- nstd_
string_ cap - Returns a string’s capacity.
- nstd_
string_ clear - Sets a string’s length to zero.
- nstd_
string_ clone - Creates a deep copy of a string.
- nstd_
string_ free - Frees an instance of
NSTDString. - nstd_
string_ from_ bytes - Creates a new string from owned UTF-8 data.
- nstd_
string_ from_ f32 - Creates a new
NSTDStringfrom anNSTDFloat32. - nstd_
string_ from_ f64 - Creates a new
NSTDStringfrom anNSTDFloat64. - nstd_
string_ from_ i8 - Creates a new
NSTDStringfrom anNSTDInt8. - nstd_
string_ from_ i16 - Creates a new
NSTDStringfrom anNSTDInt16. - nstd_
string_ from_ i32 - Creates a new
NSTDStringfrom anNSTDInt32. - nstd_
string_ from_ i64 - Creates a new
NSTDStringfrom anNSTDInt64. - nstd_
string_ from_ int - Creates a new
NSTDStringfrom anNSTDInt. - nstd_
string_ ⚠from_ str - Creates an owned version of an unowned string slice.
- nstd_
string_ from_ u8 - Creates a new
NSTDStringfrom anNSTDUInt8. - nstd_
string_ from_ u16 - Creates a new
NSTDStringfrom anNSTDUInt16. - nstd_
string_ from_ u32 - Creates a new
NSTDStringfrom anNSTDUInt32. - nstd_
string_ from_ u64 - Creates a new
NSTDStringfrom anNSTDUInt64. - nstd_
string_ from_ uint - Creates a new
NSTDStringfrom anNSTDUInt. - nstd_
string_ into_ bytes - Returns ownership of an
NSTDString’s raw data, taking ownership of said string. - nstd_
string_ len - Returns the number of Unicode characters in a string.
- nstd_
string_ new - Creates a new instance of
NSTDString. - nstd_
string_ new_ with_ cap - Creates a new string initialized with the given capacity.
- nstd_
string_ pop - Removes the last character from a string and returns it.
- nstd_
string_ push - Pushes an
NSTDUnicharonto the end of a string. - nstd_
string_ ⚠push_ str - Appends a string slice to the end of a string.
Type Aliases§
- NSTD
Optional String - Represents an optional value of type
NSTDString.