pub struct EmptyBoxedSlice<T> { /* private fields */ }Available on crate features
std or alloc only.Expand description
Similar to EmptyVec<T>, but contains the empty boxed slice provided.
Implementations§
Source§impl<T> EmptyBoxedSlice<T>
impl<T> EmptyBoxedSlice<T>
Sourcepub fn from_empty_vec(empty: EmptyVec<T>) -> Self
pub fn from_empty_vec(empty: EmptyVec<T>) -> Self
Constructs Self from EmptyVec<T>.
Sourcepub fn into_empty_vec(self) -> EmptyVec<T>
pub fn into_empty_vec(self) -> EmptyVec<T>
Converts Self into EmptyVec<T>.
Trait Implementations§
Source§impl<T> Debug for EmptyBoxedSlice<T>
impl<T> Debug for EmptyBoxedSlice<T>
Source§impl<T> Display for EmptyBoxedSlice<T>
impl<T> Display for EmptyBoxedSlice<T>
Source§impl<T> Error for EmptyBoxedSlice<T>
impl<T> Error for EmptyBoxedSlice<T>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> Freeze for EmptyBoxedSlice<T>
impl<T> RefUnwindSafe for EmptyBoxedSlice<T>where
T: RefUnwindSafe,
impl<T> Send for EmptyBoxedSlice<T>where
T: Send,
impl<T> Sync for EmptyBoxedSlice<T>where
T: Sync,
impl<T> Unpin for EmptyBoxedSlice<T>
impl<T> UnwindSafe for EmptyBoxedSlice<T>where
T: UnwindSafe,
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