Enum wuffs::slice::WuffsSlice [−][src]
pub enum WuffsSlice<'a, T: WuffsSliceImpl> { Owned(WuffsSliceOwned<T>), Borrowed(WuffsSliceBorrowed<'a, T>), }
Variants
Tuple Fields of Owned
0: WuffsSliceOwned<T>
Tuple Fields of Borrowed
0: WuffsSliceBorrowed<'a, T>
Implementations
Convert read-only slice reference into a T::Native
Safety
Potential cast to *mut
ptr underlying with the hope the underlying data isn’t
modified.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for WuffsSlice<'a, T> where
T: RefUnwindSafe,
<T as WuffsSliceImpl>::Native: RefUnwindSafe,
impl<'a, T> Send for WuffsSlice<'a, T> where
T: Send,
<T as WuffsSliceImpl>::Native: Send,
impl<'a, T> Sync for WuffsSlice<'a, T> where
T: Sync,
<T as WuffsSliceImpl>::Native: Sync,
impl<'a, T> Unpin for WuffsSlice<'a, T> where
T: Unpin,
<T as WuffsSliceImpl>::Native: Unpin,
impl<'a, T> UnwindSafe for WuffsSlice<'a, T> where
T: UnwindSafe,
<T as WuffsSliceImpl>::Native: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more