Struct aliri_braid_examples::normalized::LowerStr [−][src]
#[repr(transparent)]pub struct LowerStr(_);
Expand description
A borrowed reference to a non-empty, lowercase string
Implementations
Transparently reinterprets the string slice as a strongly-typed LowerStr if it conforms to LowerString
, normalizing if necessary
Transparently reinterprets the string slice as a strongly-typed LowerStr
if it conforms to LowerString
, producing an error if normalization is necessary
Transparently reinterprets the string slice as a strongly-typed LowerStr
without validating
Safety
Calls to this function must ensure that the value being passed conforms to LowerString
and is already in normalized form. Failure to do this may result in undefined behavior if other code relies on this invariant.
Converts a Box<LowerStr>
into a LowerString
without copying or allocating
Trait Implementations
Deserializes a LowerStr
in normalized form
This deserializer requires that the value already be in normalized form. If values may require normalization, then deserialized as LowerString
or Cow
<LowerStr>
instead.
Deserialize this value from the given Serde deserializer. Read more
type Owned = LowerString
type Owned = LowerString
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations
impl RefUnwindSafe for LowerStr
impl UnwindSafe for LowerStr