#[repr(transparent)]pub struct SliceLabel<Word: AnyBitPattern>(pub [Word]);Expand description
Implementation of StridableLabel that simply wraps a slice.
Tuple Fields§
§0: [Word]Trait Implementations§
Source§impl<Word: AnyBitPattern> AsMut<[Word]> for SliceLabel<Word>
impl<Word: AnyBitPattern> AsMut<[Word]> for SliceLabel<Word>
Source§impl<Word: AnyBitPattern> AsRef<[Word]> for SliceLabel<Word>
impl<Word: AnyBitPattern> AsRef<[Word]> for SliceLabel<Word>
Source§impl<Word: AnyBitPattern> Borrow<SliceLabel<Word>> for BoxLabel<Word>
impl<Word: AnyBitPattern> Borrow<SliceLabel<Word>> for BoxLabel<Word>
Source§fn borrow(&self) -> &SliceLabel<Word>
fn borrow(&self) -> &SliceLabel<Word>
Immutably borrows from an owned value. Read more
Source§impl<Word: AnyBitPattern> BorrowMut<SliceLabel<Word>> for BoxLabel<Word>
impl<Word: AnyBitPattern> BorrowMut<SliceLabel<Word>> for BoxLabel<Word>
Source§fn borrow_mut(&mut self) -> &mut SliceLabel<Word>
fn borrow_mut(&mut self) -> &mut SliceLabel<Word>
Mutably borrows from an owned value. Read more
Source§impl<Word: Debug + AnyBitPattern> Debug for SliceLabel<Word>
impl<Word: Debug + AnyBitPattern> Debug for SliceLabel<Word>
Source§impl<Word: PartialEq + AnyBitPattern> PartialEq for SliceLabel<Word>
impl<Word: PartialEq + AnyBitPattern> PartialEq for SliceLabel<Word>
Source§impl<Word: AnyBitPattern + Default> StridableLabel for SliceLabel<Word>
impl<Word: AnyBitPattern + Default> StridableLabel for SliceLabel<Word>
Source§impl<Word: AnyBitPattern> ToOwned for SliceLabel<Word>
impl<Word: AnyBitPattern> ToOwned for SliceLabel<Word>
Source§impl<Word: AnyBitPattern> TransparentWrapper<[Word]> for SliceLabel<Word>
impl<Word: AnyBitPattern> TransparentWrapper<[Word]> for SliceLabel<Word>
Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
impl<Word: Eq + AnyBitPattern> Eq for SliceLabel<Word>
impl<Word: AnyBitPattern> StructuralPartialEq for SliceLabel<Word>
Auto Trait Implementations§
impl<Word> Freeze for SliceLabel<Word>where
Word: Freeze,
impl<Word> RefUnwindSafe for SliceLabel<Word>where
Word: RefUnwindSafe,
impl<Word> Send for SliceLabel<Word>where
Word: Send,
impl<Word> !Sized for SliceLabel<Word>
impl<Word> Sync for SliceLabel<Word>where
Word: Sync,
impl<Word> Unpin for SliceLabel<Word>where
Word: Unpin,
impl<Word> UnsafeUnpin for SliceLabel<Word>where
Word: UnsafeUnpin,
impl<Word> UnwindSafe for SliceLabel<Word>where
Word: 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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<I, T> TransparentWrapperAlloc<I> for T
impl<I, T> TransparentWrapperAlloc<I> for T
Source§fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
Convert a vec of the inner type into a vec of the wrapper type.
Source§fn wrap_box(s: Box<Inner>) -> Box<Self>
fn wrap_box(s: Box<Inner>) -> Box<Self>
Convert a box to the inner type into a box to the wrapper
type.
Source§fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
Convert an
Rc to the inner type into an Rc to the wrapper type.Source§fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
Convert an
Arc to the inner type into an Arc to the wrapper type.Source§fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
Convert a vec of the wrapper type into a vec of the inner type.
Source§fn peel_box(s: Box<Self>) -> Box<Inner>
fn peel_box(s: Box<Self>) -> Box<Inner>
Convert a box to the wrapper type into a box to the inner
type.