pub(crate) enum SizeInfo<E = usize> {
Sized {
_size: usize,
},
SliceDst(TrailingSliceLayout<E>),
}
Variants§
Implementations§
source§impl SizeInfo
impl SizeInfo
sourcepub(crate) const fn try_to_nonzero_elem_size(
&self,
) -> Option<SizeInfo<NonZeroUsize>>
pub(crate) const fn try_to_nonzero_elem_size( &self, ) -> Option<SizeInfo<NonZeroUsize>>
Attempts to create a SizeInfo
from Self
in which elem_size
is a
NonZeroUsize
. If elem_size
is 0, returns None
.
Auto Trait Implementations§
impl<E> Freeze for SizeInfo<E>where
E: Freeze,
impl<E> RefUnwindSafe for SizeInfo<E>where
E: RefUnwindSafe,
impl<E> Send for SizeInfo<E>where
E: Send,
impl<E> Sync for SizeInfo<E>where
E: Sync,
impl<E> Unpin for SizeInfo<E>where
E: Unpin,
impl<E> UnwindSafe for SizeInfo<E>where
E: 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