[][src]Struct rdx::KeyBytesWith

pub struct KeyBytesWith<B, L> {
    pub bytes: B,
    pub len: L,
}

Implements KeyBytes<K> given a key length and a getter for key bytes

Fields

bytes: B

A getter for key bytes. Should yield valid, constant bytes for any length <= len(key)

len: L

A getter for key lengths.

Trait Implementations

impl<B: Clone, L: Clone> Clone for KeyBytesWith<B, L>[src]

impl<B: Copy, L: Copy> Copy for KeyBytesWith<B, L>[src]

impl<B: Debug, L: Debug> Debug for KeyBytesWith<B, L>[src]

impl<B, L, K> KeyBytes<K> for KeyBytesWith<B, L> where
    L: KeyLength<K>,
    B: Fn(&K, usize) -> u8
[src]

Auto Trait Implementations

impl<B, L> RefUnwindSafe for KeyBytesWith<B, L> where
    B: RefUnwindSafe,
    L: RefUnwindSafe

impl<B, L> Send for KeyBytesWith<B, L> where
    B: Send,
    L: Send

impl<B, L> Sync for KeyBytesWith<B, L> where
    B: Sync,
    L: Sync

impl<B, L> Unpin for KeyBytesWith<B, L> where
    B: Unpin,
    L: Unpin

impl<B, L> UnwindSafe for KeyBytesWith<B, L> where
    B: UnwindSafe,
    L: UnwindSafe

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.