Struct the_key::Key[][src]

pub struct Key<'a, T: KeyPartsSequence> { /* fields omitted */ }

Implementations

impl<'a, T: KeyPartsSequence> Key<'a, T>[src]

pub fn new(
    bytes: Vec<u8>,
    key_len: usize,
    extensions: Option<&'a [KeyExtensionsItem]>
) -> Self
[src]

pub fn get_key(&self) -> &[u8][src]

pub fn get_prefix(&self) -> &[u8][src]

pub fn to_vec(self) -> Vec<u8>[src]

Trait Implementations

impl<'a, T: KeyPartsSequence> AsRef<[u8]> for Key<'a, T>[src]

impl<'a, T: Clone + KeyPartsSequence> Clone for Key<'a, T>[src]

impl<'a, T: KeyPartsSequence> Debug for Key<'a, T>[src]

impl<'a, T: KeyPartsSequence> Into<Vec<u8, Global>> for Key<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Key<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for Key<'a, T> where
    T: Send
[src]

impl<'a, T> Sync for Key<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for Key<'a, T> where
    T: Unpin
[src]

impl<'a, T> UnwindSafe for Key<'a, T> where
    T: UnwindSafe
[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.