pub type NonEmptyCowStr<'s> = Cow<'s, NonEmptyStr>;Expand description
Represents non-empty clone-on-write strings, Cow<'s, NonEmptyStr>.
Aliased Type§
pub enum NonEmptyCowStr<'s> {
Borrowed(&'s NonEmptyStr),
Owned(NonEmptyString),
}Variants§
Trait Implementations§
Source§impl<'s> From<&'s NonEmptyStr> for NonEmptyCowStr<'s>
impl<'s> From<&'s NonEmptyStr> for NonEmptyCowStr<'s>
Source§fn from(non_empty: &'s NonEmptyStr) -> Self
fn from(non_empty: &'s NonEmptyStr) -> Self
Converts to this type from the input type.
Source§impl<'s> From<&'s NonEmptyString> for NonEmptyCowStr<'s>
impl<'s> From<&'s NonEmptyString> for NonEmptyCowStr<'s>
Source§fn from(non_empty: &'s NonEmptyString) -> Self
fn from(non_empty: &'s NonEmptyString) -> Self
Converts to this type from the input type.
Source§impl From<NonEmptyString> for NonEmptyCowStr<'_>
impl From<NonEmptyString> for NonEmptyCowStr<'_>
Source§fn from(non_empty: NonEmptyString) -> Self
fn from(non_empty: NonEmptyString) -> Self
Converts to this type from the input type.
Source§impl PartialEq<Box<NonEmptyStr>> for NonEmptyCowStr<'_>
Available on crate features alloc or std only.
impl PartialEq<Box<NonEmptyStr>> for NonEmptyCowStr<'_>
Available on crate features
alloc or std only.Source§impl PartialEq<NonEmptyStr> for NonEmptyCowStr<'_>
Available on crate features alloc or std only.
impl PartialEq<NonEmptyStr> for NonEmptyCowStr<'_>
Available on crate features
alloc or std only.Source§impl PartialEq<NonEmptyString> for NonEmptyCowStr<'_>
Available on crate features alloc or std only.
impl PartialEq<NonEmptyString> for NonEmptyCowStr<'_>
Available on crate features
alloc or std only.Source§impl PartialOrd<Box<NonEmptyStr>> for NonEmptyCowStr<'_>
Available on crate features alloc or std only.
impl PartialOrd<Box<NonEmptyStr>> for NonEmptyCowStr<'_>
Available on crate features
alloc or std only.Source§impl PartialOrd<NonEmptyStr> for NonEmptyCowStr<'_>
Available on crate features alloc or std only.
impl PartialOrd<NonEmptyStr> for NonEmptyCowStr<'_>
Available on crate features
alloc or std only.Source§impl PartialOrd<NonEmptyString> for NonEmptyCowStr<'_>
Available on crate features alloc or std only.
impl PartialOrd<NonEmptyString> for NonEmptyCowStr<'_>
Available on crate features
alloc or std only.