[][src]Struct show_notes::e018::HasAllTheImpls

pub struct HasAllTheImpls {
    contents: [u8; 8],

Demonstrate borrowing the internal contents of the item.

Note that, because of the specifics of what we're doing here, the implementations of Borrow, AsRef, and Deref here are identical. This will often, but not always, be the case, depending on the types and conversions in question.


contents: [u8; 8]


impl HasAllTheImpls[src]

pub fn new(contents: &[u8; 8]) -> HasAllTheImpls[src]

Trait Implementations

impl AsRef<[u8]> for HasAllTheImpls[src]

impl Deref for HasAllTheImpls[src]

type Target = [u8]

The resulting type after dereferencing.

impl Borrow<[u8]> for HasAllTheImpls[src]

Auto Trait Implementations

impl Send for HasAllTheImpls

impl Unpin for HasAllTheImpls

impl Sync for HasAllTheImpls

impl RefUnwindSafe for HasAllTheImpls

impl UnwindSafe for HasAllTheImpls

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T, V> SliceConcat<T> for V where
    T: Clone,
    V: Borrow<[T]>, 

type Output = Vec<T>

🔬 This is a nightly-only experimental API. (slice_concat_trait)

The resulting type after concatenation

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized