Available on crate feature
core only.Expand description
An unowned view into a UTF-8 encoded byte string.
Structs§
- NSTDStr
- An immutable unowned view into a UTF-8 encoded byte string.
- NSTD
StrMut - An unowned view into a UTF-8 encoded byte string.
Functions§
- nstd_
core_ str_ as_ bytes - Returns an immutable byte slice over
str’s data. - nstd_
core_ str_ as_ cstr - Returns a C string slice variant of this UTF-8 encoded string slice.
- nstd_
core_ str_ as_ ptr - Returns a raw pointer to a string slice’s memory.
- nstd_
core_ str_ byte_ len - Returns the number of bytes a string slice contains.
- nstd_
core_ ⚠str_ from_ bytes - Creates a string slice from raw bytes.
- nstd_
core_ ⚠str_ from_ bytes_ unchecked - Creates a string slice from raw bytes, without checking for UTF-8.
- nstd_
core_ ⚠str_ from_ cstr - Creates a new instance of an
NSTDStrfrom a C string slice. - nstd_
core_ ⚠str_ from_ cstr_ unchecked - Creates a new instance of an
NSTDStrfrom a C string slice. - nstd_
core_ ⚠str_ from_ raw_ cstr - Creates a new
NSTDStrfrom a raw C string. - nstd_
core_ ⚠str_ from_ raw_ cstr_ with_ null - Creates a new
NSTDStrfrom a raw C string, including the null byte. - nstd_
core_ ⚠str_ get - Gets the
NSTDUnicharat indexposinstr. - nstd_
core_ ⚠str_ len - Returns the number of Unicode characters in a string slice.
- nstd_
core_ str_ mut_ as_ bytes - Returns an immutable byte slice over
str’s data. - nstd_
core_ str_ mut_ as_ const - Creates an immutable version of a mutable string slice.
- nstd_
core_ str_ mut_ as_ cstr - Returns a C string slice variant of this UTF-8 encoded string slice.
- nstd_
core_ str_ mut_ as_ ptr - Returns an immutable raw pointer to a string slice’s memory.
- nstd_
core_ str_ mut_ byte_ len - Returns the number of bytes a string slice contains.
- nstd_
core_ ⚠str_ mut_ from_ bytes - Creates a string slice from raw bytes.
- nstd_
core_ ⚠str_ mut_ from_ bytes_ unchecked - Creates a string slice from raw bytes, without checking for UTF-8.
- nstd_
core_ ⚠str_ mut_ from_ cstr - Creates a new instance of an
NSTDStrMutfrom a C string slice. - nstd_
core_ ⚠str_ mut_ from_ cstr_ unchecked - Creates a new instance of an
NSTDStrMutfrom a C string slice. - nstd_
core_ ⚠str_ mut_ from_ raw_ cstr - Creates a new
NSTDStrMutfrom a raw C string. - nstd_
core_ ⚠str_ mut_ from_ raw_ cstr_ with_ null - Creates a new
NSTDStrMutfrom a raw C string, including the null byte. - nstd_
core_ ⚠str_ mut_ get - Gets the
NSTDUnicharat indexposinstr. - nstd_
core_ ⚠str_ mut_ len - Returns the number of Unicode characters in a string slice.
- nstd_
core_ ⚠str_ mut_ substr - Creates a substring of an existing string slice.
- nstd_
core_ ⚠str_ mut_ to_ f32 - Attempts to parse a string slice as an
NSTDFloat32. - nstd_
core_ ⚠str_ mut_ to_ f64 - Attempts to parse a string slice as an
NSTDFloat64. - nstd_
core_ ⚠str_ mut_ to_ i8 - Attempts to parse a string slice as an
NSTDInt8. - nstd_
core_ ⚠str_ mut_ to_ i16 - Attempts to parse a string slice as an
NSTDInt16. - nstd_
core_ ⚠str_ mut_ to_ i32 - Attempts to parse a string slice as an
NSTDInt32. - nstd_
core_ ⚠str_ mut_ to_ i64 - Attempts to parse a string slice as an
NSTDInt64. - nstd_
core_ ⚠str_ mut_ to_ int - Attempts to parse a string slice as an
NSTDInt. - nstd_
core_ ⚠str_ mut_ to_ u8 - Attempts to parse a string slice as an
NSTDUInt8. - nstd_
core_ ⚠str_ mut_ to_ u16 - Attempts to parse a string slice as an
NSTDUInt16. - nstd_
core_ ⚠str_ mut_ to_ u32 - Attempts to parse a string slice as an
NSTDUInt32. - nstd_
core_ ⚠str_ mut_ to_ u64 - Attempts to parse a string slice as an
NSTDUInt64. - nstd_
core_ ⚠str_ mut_ to_ uint - Attempts to parse a string slice as an
NSTDUInt. - nstd_
core_ ⚠str_ substr - Creates a substring of an existing string slice.
- nstd_
core_ ⚠str_ to_ f32 - Attempts to parse a string slice as an
NSTDFloat32. - nstd_
core_ ⚠str_ to_ f64 - Attempts to parse a string slice as an
NSTDFloat64. - nstd_
core_ ⚠str_ to_ i8 - Attempts to parse a string slice as an
NSTDInt8. - nstd_
core_ ⚠str_ to_ i16 - Attempts to parse a string slice as an
NSTDInt16. - nstd_
core_ ⚠str_ to_ i32 - Attempts to parse a string slice as an
NSTDInt32. - nstd_
core_ ⚠str_ to_ i64 - Attempts to parse a string slice as an
NSTDInt64. - nstd_
core_ ⚠str_ to_ int - Attempts to parse a string slice as an
NSTDInt. - nstd_
core_ ⚠str_ to_ u8 - Attempts to parse a string slice as an
NSTDUInt8. - nstd_
core_ ⚠str_ to_ u16 - Attempts to parse a string slice as an
NSTDUInt16. - nstd_
core_ ⚠str_ to_ u32 - Attempts to parse a string slice as an
NSTDUInt32. - nstd_
core_ ⚠str_ to_ u64 - Attempts to parse a string slice as an
NSTDUInt64. - nstd_
core_ ⚠str_ to_ uint - Attempts to parse a string slice as an
NSTDUInt.
Type Aliases§
- NSTD
Optional Str - Represents an optional value of type
NSTDStr. - NSTD
Optional StrMut - Represents an optional value of type
NSTDStrMut.