psrgbt

Struct KeyPair

Source
pub struct KeyPair<T, K, V>
where T: KeyType,
{ pub key_type: T, pub key_data: K, pub value_data: V, }

Fields§

§key_type: T§key_data: K§value_data: V

Implementations§

Source§

impl<T, K, V> KeyPair<T, K, V>
where T: KeyType,

Source

pub fn new(key_type: T, key_data: K, value_data: V) -> KeyPair<T, K, V>

Source§

impl<'a, T> KeyPair<T, Box<dyn Encode + 'a>, Box<dyn Encode + 'a>>
where T: KeyType,

Source

pub fn boxed<K, V>( key_type: T, key_data: K, value_data: V, ) -> KeyPair<T, Box<dyn Encode + 'a>, Box<dyn Encode + 'a>>
where K: Encode + 'a, V: Encode + 'a,

Trait Implementations§

Source§

impl<T, K, V> Debug for KeyPair<T, K, V>
where T: Debug + KeyType, K: Debug, V: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T, K, V> Encode for KeyPair<T, K, V>
where T: KeyType, K: Encode, V: Encode,

Source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

Auto Trait Implementations§

§

impl<T, K, V> Freeze for KeyPair<T, K, V>
where T: Freeze, K: Freeze, V: Freeze,

§

impl<T, K, V> RefUnwindSafe for KeyPair<T, K, V>

§

impl<T, K, V> Send for KeyPair<T, K, V>
where T: Send, K: Send, V: Send,

§

impl<T, K, V> Sync for KeyPair<T, K, V>
where T: Sync, K: Sync, V: Sync,

§

impl<T, K, V> Unpin for KeyPair<T, K, V>
where T: Unpin, K: Unpin, V: Unpin,

§

impl<T, K, V> UnwindSafe for KeyPair<T, K, V>
where T: UnwindSafe, K: UnwindSafe, V: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V