NonEmptyBoxedStr

Type Alias NonEmptyBoxedStr 

Source
pub type NonEmptyBoxedStr = Box<NonEmptyStr>;
Available on crate features std or alloc only.
Expand description

Represents non-empty boxed strings, Box<NonEmptyStr>.

Aliased Type§

pub struct NonEmptyBoxedStr(/* private fields */);

Trait Implementations§

Source§

impl Clone for NonEmptyBoxedStr

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for NonEmptyBoxedStr

Available on crate feature serde only.
Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<Cow<'_, NonEmptyStr>> for NonEmptyBoxedStr

Source§

fn from(non_empty: NonEmptyCowStr<'_>) -> Self

Converts to this type from the input type.
Source§

impl From<NonEmptyString> for NonEmptyBoxedStr

Source§

fn from(non_empty: NonEmptyString) -> Self

Converts to this type from the input type.
Source§

impl<'s> FromNonEmptyIterator<&'s NonEmptyStr> for NonEmptyBoxedStr

Source§

fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = &'s NonEmptyStr>>( iterable: I, ) -> Self

Creates Self from the provided non-empty iterator.
Source§

impl<'c> FromNonEmptyIterator<&'c char> for NonEmptyBoxedStr

Source§

fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = &'c char>>( iterable: I, ) -> Self

Creates Self from the provided non-empty iterator.
Source§

impl FromNonEmptyIterator<Box<NonEmptyStr>> for NonEmptyBoxedStr

Source§

fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = Self>>( iterable: I, ) -> Self

Creates Self from the provided non-empty iterator.
Source§

impl<'s> FromNonEmptyIterator<Cow<'s, NonEmptyStr>> for NonEmptyBoxedStr

Source§

fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = NonEmptyCowStr<'s>>>( iterable: I, ) -> Self

Creates Self from the provided non-empty iterator.
Source§

impl FromNonEmptyIterator<NonEmptyString> for NonEmptyBoxedStr

Source§

fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = NonEmptyString>>( iterable: I, ) -> Self

Creates Self from the provided non-empty iterator.
Source§

impl FromNonEmptyIterator<char> for NonEmptyBoxedStr

Source§

fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = char>>( iterable: I, ) -> Self

Creates Self from the provided non-empty iterator.
Source§

impl IntoOwned for NonEmptyBoxedStr

Available on crate feature ownership only.
Source§

type Owned = Box<NonEmptyStr>

The owned type produced by into_owned. Read more
Source§

fn into_owned(self) -> Self::Owned

Consumes Self and converts it into the associated Owned type.
Source§

impl TryFrom<Box<str>> for NonEmptyBoxedStr

Source§

type Error = EmptyBoxedStr

The type returned in the event of a conversion error.
Source§

fn try_from(boxed: Box<str>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<String> for NonEmptyBoxedStr

Source§

type Error = EmptyString

The type returned in the event of a conversion error.
Source§

fn try_from(string: String) -> Result<Self, Self::Error>

Performs the conversion.