pub struct Tup2<T1, T2>(pub T1, pub T2);Expand description
A tuple type on which dbsp controls trait implementations.
Tuple Fields§
§0: T1§1: T2Implementations§
Trait Implementations§
Source§impl<T1, T2> AddAssignByRef for Tup2<T1, T2>where
T1: AddAssignByRef,
T2: AddAssignByRef,
impl<T1, T2> AddAssignByRef for Tup2<T1, T2>where
T1: AddAssignByRef,
T2: AddAssignByRef,
fn add_assign_by_ref(&mut self, other: &Self)
Source§impl<T1, T2> Archive for Tup2<T1, T2>
impl<T1, T2> Archive for Tup2<T1, T2>
Source§impl<T1, T2> Checkpoint for Tup2<T1, T2>
impl<T1, T2> Checkpoint for Tup2<T1, T2>
Source§impl<'de, T1, T2> Deserialize<'de> for Tup2<T1, T2>where
T1: Deserialize<'de>,
T2: Deserialize<'de>,
impl<'de, T1, T2> Deserialize<'de> for Tup2<T1, T2>where
T1: Deserialize<'de>,
T2: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<__D: Fallible + ?Sized, T1, T2> Deserialize<Tup2<T1, T2>, __D> for Archived<Tup2<T1, T2>>
impl<__D: Fallible + ?Sized, T1, T2> Deserialize<Tup2<T1, T2>, __D> for Archived<Tup2<T1, T2>>
Source§impl<'de, C, AUX, T1, T2> DeserializeWithContext<'de, C, AUX> for Tup2<T1, T2>where
Tup2<T1, T2>: Deserialize<'de>,
impl<'de, C, AUX, T1, T2> DeserializeWithContext<'de, C, AUX> for Tup2<T1, T2>where
Tup2<T1, T2>: Deserialize<'de>,
fn deserialize_with_context<D>(
deserializer: D,
_context: &'de C,
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize_with_context_aux<D>(
deserializer: D,
context: &'de C,
_aux: &'de Option<AUX>,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl<T1, T2> NumEntries for Tup2<T1, T2>where
T1: NumEntries,
T2: NumEntries,
impl<T1, T2> NumEntries for Tup2<T1, T2>where
T1: NumEntries,
T2: NumEntries,
Source§const CONST_NUM_ENTRIES: Option<usize> = None
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
fn num_entries_shallow(&self) -> usize
Returns the number of entries in
self.Source§fn num_entries_deep(&self) -> usize
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 moreSource§impl<T1: Ord, T2: Ord> Ord for Tup2<T1, T2>
impl<T1: Ord, T2: Ord> Ord for Tup2<T1, T2>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T1, T2, Trait1, Trait2> Pair<Trait1, Trait2> for Tup2<T1, T2>
impl<T1, T2, Trait1, Trait2> Pair<Trait1, Trait2> for Tup2<T1, T2>
Source§fn fst_mut(&mut self) -> &mut Trait1
fn fst_mut(&mut self) -> &mut Trait1
Return a mutable reference to the first component of the tuple.
Source§fn snd_mut(&mut self) -> &mut Trait2
fn snd_mut(&mut self) -> &mut Trait2
Return a mutable reference to the second component of the tuple.
Source§fn split(&self) -> (&Trait1, &Trait2)
fn split(&self) -> (&Trait1, &Trait2)
Return a pair of references to the values stored in the tuple.
Source§fn split_mut(&mut self) -> (&mut Trait1, &mut Trait2)
fn split_mut(&mut self) -> (&mut Trait1, &mut Trait2)
Return a pair of mutable references to the values stored in the tuple.
Source§fn from_refs(&mut self, fst: &Trait1, snd: &Trait2)
fn from_refs(&mut self, fst: &Trait1, snd: &Trait2)
Clone the values of
fst anf snd to the first and second components of the tuple.Source§fn from_vals(&mut self, fst: &mut Trait1, snd: &mut Trait2)
fn from_vals(&mut self, fst: &mut Trait1, snd: &mut Trait2)
Move
fst and snd into the first and second components of the tuple without cloning.
Sets the contents of fst and snd to default values.Source§impl<T1: PartialOrd, T2: PartialOrd> PartialOrd for Tup2<T1, T2>
impl<T1: PartialOrd, T2: PartialOrd> PartialOrd for Tup2<T1, T2>
Source§impl<T1, T2> SizeOf for Tup2<T1, T2>
impl<T1, T2> SizeOf for Tup2<T1, T2>
Source§fn size_of_children(&self, context: &mut Context)
fn size_of_children(&self, context: &mut Context)
Gets the size of all “children” owned by this value, not including the
size of the value itself. Read more
Source§fn size_of_with_context(&self, context: &mut Context)
fn size_of_with_context(&self, context: &mut Context)
Adds the size of the current value to the given
Context,
including both the size of the value itself and all of its childrenimpl<T1: Copy, T2: Copy> Copy for Tup2<T1, T2>
impl<T1: Eq, T2: Eq> Eq for Tup2<T1, T2>
impl<T1, T2> StructuralPartialEq for Tup2<T1, T2>
Auto Trait Implementations§
impl<T1, T2> Freeze for Tup2<T1, T2>
impl<T1, T2> RefUnwindSafe for Tup2<T1, T2>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2> Send for Tup2<T1, T2>
impl<T1, T2> Sync for Tup2<T1, T2>
impl<T1, T2> Unpin for Tup2<T1, T2>
impl<T1, T2> UnwindSafe for Tup2<T1, T2>where
T1: UnwindSafe,
T2: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
Source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Comparable for T
impl<T> Comparable for T
Source§impl<T> Data for Twhere
T: DBData,
impl<T> Data for Twhere
T: DBData,
Source§fn default_hash(&self) -> u64
fn default_hash(&self) -> u64
Compute a hash of the object using default hasher and seed.
fn dyn_hash(&self, hasher: &mut dyn Hasher)
Source§fn as_data(&self) -> &(dyn Data + 'static)
fn as_data(&self) -> &(dyn Data + 'static)
Cast any type that implements this trait to
&dyn Data. Read moreSource§fn as_data_mut(&mut self) -> &mut (dyn Data + 'static)
fn as_data_mut(&mut self) -> &mut (dyn Data + 'static)
Cast any type that implements this trait to
&mut dyn Data. Read moreSource§impl<T> DeserializableDyn for Twhere
T: ArchivedDBData,
impl<T> DeserializableDyn for Twhere
T: ArchivedDBData,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<V> Erase<dyn Data> for V
impl<V> Erase<dyn Data> for V
Source§fn erase(&self) -> &(dyn Data + 'static)
fn erase(&self) -> &(dyn Data + 'static)
Convert a reference to
self into a reference to Trait.Source§fn erase_mut(&mut self) -> &mut (dyn Data + 'static)
fn erase_mut(&mut self) -> &mut (dyn Data + 'static)
Convert a mutable reference to
self into a mutable reference to Trait.Source§fn erase_archived(
archived: &<V as Archive>::Archived,
) -> &<dyn Data as ArchiveTrait>::Archived
fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn Data as ArchiveTrait>::Archived
Convert a reference to an archived representation of
Self into a reference
to a trait object of type Trait::Archived.Source§impl<V, T1, T2> Erase<dyn Pair<T1, T2>> for Vwhere
V: Pair<T1, T2> + ArchivedDBData,
DeserializeImpl<V, dyn Pair<T1, T2>>: ArchivedPairTrait<T1, T2>,
T1: DataTrait + ?Sized,
T2: DataTrait + ?Sized,
impl<V, T1, T2> Erase<dyn Pair<T1, T2>> for Vwhere
V: Pair<T1, T2> + ArchivedDBData,
DeserializeImpl<V, dyn Pair<T1, T2>>: ArchivedPairTrait<T1, T2>,
T1: DataTrait + ?Sized,
T2: DataTrait + ?Sized,
Source§fn erase(&self) -> &(dyn Pair<T1, T2> + 'static)
fn erase(&self) -> &(dyn Pair<T1, T2> + 'static)
Convert a reference to
self into a reference to Trait.Source§fn erase_mut(&mut self) -> &mut (dyn Pair<T1, T2> + 'static)
fn erase_mut(&mut self) -> &mut (dyn Pair<T1, T2> + 'static)
Convert a mutable reference to
self into a mutable reference to Trait.Source§fn erase_archived(
archived: &<V as Archive>::Archived,
) -> &<dyn Pair<T1, T2> as ArchiveTrait>::Archived
fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn Pair<T1, T2> as ArchiveTrait>::Archived
Convert a reference to an archived representation of
Self into a reference
to a trait object of type Trait::Archived.Source§impl<V> Erase<dyn Weight> for V
impl<V> Erase<dyn Weight> for V
Source§fn erase(&self) -> &(dyn Weight + 'static)
fn erase(&self) -> &(dyn Weight + 'static)
Convert a reference to
self into a reference to Trait.Source§fn erase_mut(&mut self) -> &mut (dyn Weight + 'static)
fn erase_mut(&mut self) -> &mut (dyn Weight + 'static)
Convert a mutable reference to
self into a mutable reference to Trait.Source§fn erase_archived(
archived: &<V as Archive>::Archived,
) -> &<dyn Weight as ArchiveTrait>::Archived
fn erase_archived( archived: &<V as Archive>::Archived, ) -> &<dyn Weight as ArchiveTrait>::Archived
Convert a reference to an archived representation of
Self into a reference
to a trait object of type Trait::Archived.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.