Struct fadroma::storage::TypedKey2

source ·
pub struct TypedKey2<'a, T1: Segment + ?Sized, T2: Segment + ?Sized>(_);

Trait Implementations§

source§

impl<'a, T1: Clone + Segment + ?Sized, T2: Clone + Segment + ?Sized> Clone for TypedKey2<'a, T1, T2>

source§

fn clone(&self) -> TypedKey2<'a, T1, T2>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, T1: Debug + Segment + ?Sized, T2: Debug + Segment + ?Sized> Debug for TypedKey2<'a, T1, T2>

source§

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

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

impl<'a, T1: Segment + ?Sized, T2: Segment + ?Sized> From<(&'a T1, &'a T2)> for TypedKey2<'a, T1, T2>

source§

fn from(value: (&'a T1, &'a T2)) -> Self

Converts to this type from the input type.
source§

impl<'a, T1: Hash + Segment + ?Sized, T2: Hash + Segment + ?Sized> Hash for TypedKey2<'a, T1, T2>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a, T1: Segment + ?Sized, T2: Segment + ?Sized> Key for TypedKey2<'a, T1, T2>

source§

fn size(&self) -> usize

source§

fn write_segments(&self, buf: &mut Vec<u8>)

source§

impl<'a, T1: PartialEq + Segment + ?Sized, T2: PartialEq + Segment + ?Sized> PartialEq<TypedKey2<'a, T1, T2>> for TypedKey2<'a, T1, T2>

source§

fn eq(&self, other: &TypedKey2<'a, T1, T2>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a, T1: Copy + Segment + ?Sized, T2: Copy + Segment + ?Sized> Copy for TypedKey2<'a, T1, T2>

source§

impl<'a, T1: Segment + ?Sized, T2: Segment + ?Sized> StructuralPartialEq for TypedKey2<'a, T1, T2>

Auto Trait Implementations§

§

impl<'a, T1: ?Sized, T2: ?Sized> RefUnwindSafe for TypedKey2<'a, T1, T2>where T1: RefUnwindSafe, T2: RefUnwindSafe,

§

impl<'a, T1: ?Sized, T2: ?Sized> Send for TypedKey2<'a, T1, T2>where T1: Sync, T2: Sync,

§

impl<'a, T1: ?Sized, T2: ?Sized> Sync for TypedKey2<'a, T1, T2>where T1: Sync, T2: Sync,

§

impl<'a, T1: ?Sized, T2: ?Sized> Unpin for TypedKey2<'a, T1, T2>

§

impl<'a, T1: ?Sized, T2: ?Sized> UnwindSafe for TypedKey2<'a, T1, T2>where T1: RefUnwindSafe, T2: RefUnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T> Segment for Twhere T: Key,

source§

fn size(&self) -> usize

source§

fn write_segment(&self, buf: &mut Vec<u8, Global>)

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
§

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

§

fn vzip(self) -> V