[][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.

Fields

contents: [u8; 8]

Methods

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>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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
[src]

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

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
[src]

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