Skip to main content

DynPairs

Type Alias DynPairs 

Source
pub type DynPairs<T1, T2> = dyn Pairs<T1, T2>;

Trait Implementations§

Source§

impl<T1, T2> Archive for Box<DynPairs<T1, T2>>

Source§

type Archived = ()

The archived representation of this type. Read more
Source§

type Resolver = ()

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

unsafe fn resolve( &self, _pos: usize, _resolver: Self::Resolver, _out: *mut Self::Archived, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

impl<T1, T2> ArchiveTrait for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

type Archived = dyn DeserializeDyn<dyn Pairs<T1, T2>>

Source§

impl<T1, T2> Clone for Box<DynPairs<T1, T2>>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T1, T2> DowncastTrait for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

fn downcast_checked<T: AsAny>(&self) -> &T

Cast trait object reference to a reference to a concrete type T. Read more
Source§

fn downcast_mut_checked<T: AsAny>(&mut self) -> &mut T

Cast trait object reference to a mutable reference to a concrete type T. Read more
Source§

unsafe fn downcast<T: AsAny>(&self) -> &T

Cast trait object reference to a reference to a concrete type T, eliding type checking. Read more
Source§

unsafe fn downcast_mut<T: AsAny>(&mut self) -> &mut T

Cast trait object reference to a reference to a mutable reference to concrete type T, eliding type checking. Read more
Source§

impl<T1, T2> Eq for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

impl<T1, T2> Hash for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

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

Feeds this value into the given Hasher. Read more
Source§

impl<T1: DataTrait + ?Sized, T2: DataTrait + ?Sized> Index<usize> for DynPairs<T1, T2>

Source§

type Output = dyn Pair<T1, T2>

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<T1: DataTrait + ?Sized, T2: DataTrait + ?Sized> IndexMut<usize> for DynPairs<T1, T2>

Source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<T1: DataTrait + ?Sized, T2: DataTrait + ?Sized> NumEntries for DynPairs<T1, T2>

Source§

const CONST_NUM_ENTRIES: Option<usize> = None

Returns Some(n) if Self has constant size or None otherwise.
Source§

fn num_entries_shallow(&self) -> usize

Returns the number of entries in self.
Source§

fn num_entries_deep(&self) -> usize

Recursively computes the number of entries in a container by calling this method on each entry in self. Read more
Source§

impl<T1, T2> Ord for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
Source§

impl<T1, T2> PartialEq for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T1, T2> PartialOrd for DynPairs<T1, T2>
where T1: DataTrait + ?Sized, T2: DataTrait + ?Sized,

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynPairs<T1, T2>>

Source§

fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.