pub type NonEmptyBoxedSlice<T> = Box<NonEmptySlice<T>>;Available on crate features
std or alloc only.Expand description
Represents non-empty boxed slices, Box<NonEmptySlice<T>>.
Aliased Type§
pub struct NonEmptyBoxedSlice<T>(/* private fields */);Trait Implementations§
Source§impl<T: Clone> Clone for NonEmptyBoxedSlice<T>
impl<T: Clone> Clone for NonEmptyBoxedSlice<T>
Source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for NonEmptyBoxedSlice<T>
Available on crate feature serde only.
impl<'de, T: Deserialize<'de>> Deserialize<'de> for NonEmptyBoxedSlice<T>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Clone> From<&NonEmptySlice<T>> for NonEmptyBoxedSlice<T>
impl<T: Clone> From<&NonEmptySlice<T>> for NonEmptyBoxedSlice<T>
Source§fn from(non_empty: &NonEmptySlice<T>) -> Self
fn from(non_empty: &NonEmptySlice<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Clone> From<&mut NonEmptySlice<T>> for NonEmptyBoxedSlice<T>
impl<T: Clone> From<&mut NonEmptySlice<T>> for NonEmptyBoxedSlice<T>
Source§fn from(non_empty: &mut NonEmptySlice<T>) -> Self
fn from(non_empty: &mut NonEmptySlice<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Clone> From<Cow<'_, NonEmptySlice<T>>> for NonEmptyBoxedSlice<T>
impl<T: Clone> From<Cow<'_, NonEmptySlice<T>>> for NonEmptyBoxedSlice<T>
Source§fn from(non_empty: NonEmptyCowSlice<'_, T>) -> Self
fn from(non_empty: NonEmptyCowSlice<'_, T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<NonEmptyVec<T>> for NonEmptyBoxedSlice<T>
impl<T> From<NonEmptyVec<T>> for NonEmptyBoxedSlice<T>
Source§fn from(non_empty: NonEmptyVec<T>) -> Self
fn from(non_empty: NonEmptyVec<T>) -> Self
Converts to this type from the input type.
Source§impl<T> FromNonEmptyIterator<T> for NonEmptyBoxedSlice<T>
impl<T> FromNonEmptyIterator<T> for NonEmptyBoxedSlice<T>
Source§fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = T>>(iterable: I) -> Self
fn from_non_empty_iter<I: IntoNonEmptyIterator<Item = T>>(iterable: I) -> Self
Creates
Self from the provided non-empty iterator.Source§impl<T> IntoIterator for NonEmptyBoxedSlice<T>
impl<T> IntoIterator for NonEmptyBoxedSlice<T>
Source§impl<T> IntoNonEmptyIterator for NonEmptyBoxedSlice<T>
impl<T> IntoNonEmptyIterator for NonEmptyBoxedSlice<T>
Source§type IntoNonEmptyIter = NonEmptyAdapter<IntoIter<T>>
type IntoNonEmptyIter = NonEmptyAdapter<IntoIter<T>>
What kind of
NonEmptyIterator are we turning this into?Source§fn into_non_empty_iter(self) -> Self::IntoNonEmptyIter
fn into_non_empty_iter(self) -> Self::IntoNonEmptyIter
Converts
self into NonEmptyIterator.Source§impl<T: IntoOwned> IntoOwned for NonEmptyBoxedSlice<T>
Available on crate feature ownership only.
impl<T: IntoOwned> IntoOwned for NonEmptyBoxedSlice<T>
Available on crate feature
ownership only.Source§type Owned = Box<NonEmptySlice<<T as IntoOwned>::Owned>>
type Owned = Box<NonEmptySlice<<T as IntoOwned>::Owned>>
The owned type produced by
into_owned. Read more