Skip to main content

NonEmptyBoxedStr

Type Alias NonEmptyBoxedStr 

Source
pub type NonEmptyBoxedStr = Box<NonEmptyStr>;
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 (const: unstable) · 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 and (crate features alloc or std) 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<'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<'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 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 and (crate features alloc or std) 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 PartialEq<Box<str>> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &Box<str>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &NonEmptyCowStr<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<Cow<'_, str>> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &Cow<'_, str>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<NonEmptyStr> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &NonEmptyStr) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<NonEmptyString> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &NonEmptyString) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<String> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &String) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<str> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn eq(&self, other: &str) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd<Box<str>> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &Box<str>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

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

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &NonEmptyCowStr<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Cow<'_, str>> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &Cow<'_, str>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<NonEmptyStr> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &NonEmptyStr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<NonEmptyString> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &NonEmptyString) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<String> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &String) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<str> for NonEmptyBoxedStr

Available on crate features alloc or std only.
Source§

fn partial_cmp(&self, other: &str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
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.