pub struct SlimSliceBoxCollected<T> {
pub inner: Result<SlimSliceBox<T>, LenTooLong<Vec<T>>>,
}Expand description
A wrapper to achieve FromIterator<T> for Result<SlimSliceBox<T>, Vec<T>>.
We cannot do this directly due to orphan rules.
Fields§
§inner: Result<SlimSliceBox<T>, LenTooLong<Vec<T>>>The result of from_iter.
Implementations§
Source§impl<T: Debug> SlimSliceBoxCollected<T>
impl<T: Debug> SlimSliceBoxCollected<T>
pub fn unwrap(self) -> SlimSliceBox<T>
Trait Implementations§
Source§impl<A> FromIterator<A> for SlimSliceBoxCollected<A>
impl<A> FromIterator<A> for SlimSliceBoxCollected<A>
Source§fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> Freeze for SlimSliceBoxCollected<T>
impl<T> RefUnwindSafe for SlimSliceBoxCollected<T>where
T: RefUnwindSafe,
impl<T> Send for SlimSliceBoxCollected<T>where
T: Send,
impl<T> Sync for SlimSliceBoxCollected<T>where
T: Sync,
impl<T> Unpin for SlimSliceBoxCollected<T>where
T: Unpin,
impl<T> UnwindSafe for SlimSliceBoxCollected<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more