pub struct TwoContainer<A: Object, B: Object> {
pub a: A,
pub b: B,
}Fields§
§a: A§b: BImplementations§
Trait Implementations§
Source§impl<A: Clone + Object, B: Clone + Object> Clone for TwoContainer<A, B>
impl<A: Clone + Object, B: Clone + Object> Clone for TwoContainer<A, B>
Source§fn clone(&self) -> TwoContainer<A, B>
fn clone(&self) -> TwoContainer<A, B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Default + Object, B: Default + Object> Default for TwoContainer<A, B>
impl<A: Default + Object, B: Default + Object> Default for TwoContainer<A, B>
Source§fn default() -> TwoContainer<A, B>
fn default() -> TwoContainer<A, B>
Returns the “default value” for a type. Read more
Source§impl<'de, A, B> Deserialize<'de> for TwoContainer<A, B>
impl<'de, A, B> Deserialize<'de> for TwoContainer<A, B>
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<A: Ord + Object, B: Ord + Object> Ord for TwoContainer<A, B>
impl<A: Ord + Object, B: Ord + Object> Ord for TwoContainer<A, B>
Source§fn cmp(&self, other: &TwoContainer<A, B>) -> Ordering
fn cmp(&self, other: &TwoContainer<A, B>) -> Ordering
1.21.0 (const: unstable) · 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<A: PartialEq + Object, B: PartialEq + Object> PartialEq for TwoContainer<A, B>
impl<A: PartialEq + Object, B: PartialEq + Object> PartialEq for TwoContainer<A, B>
Source§fn eq(&self, other: &TwoContainer<A, B>) -> bool
fn eq(&self, other: &TwoContainer<A, B>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<A: PartialOrd + Object, B: PartialOrd + Object> PartialOrd for TwoContainer<A, B>
impl<A: PartialOrd + Object, B: PartialOrd + Object> PartialOrd for TwoContainer<A, B>
Source§impl<A, B> Serialize for TwoContainer<A, B>
impl<A, B> Serialize for TwoContainer<A, B>
Source§impl<A: Object + ToDynamic, B: Object + ToDynamic> ToDynamic for TwoContainer<A, B>
impl<A: Object + ToDynamic, B: Object + ToDynamic> ToDynamic for TwoContainer<A, B>
fn to_dynamic(&self) -> DynamicObject
impl<A: Copy + Object, B: Copy + Object> Copy for TwoContainer<A, B>
impl<A: Eq + Object, B: Eq + Object> Eq for TwoContainer<A, B>
impl<A: Object, B: Object> StructuralPartialEq for TwoContainer<A, B>
impl<A: ThreeDimensional, B: ThreeDimensional> ThreeDimensional for TwoContainer<A, B>
impl<A: TwoDimensional, B: TwoDimensional> TwoDimensional for TwoContainer<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for TwoContainer<A, B>
impl<A, B> RefUnwindSafe for TwoContainer<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for TwoContainer<A, B>
impl<A, B> Sync for TwoContainer<A, B>
impl<A, B> Unpin for TwoContainer<A, B>
impl<A, B> UnsafeUnpin for TwoContainer<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for TwoContainer<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
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> CenterObject for Twhere
T: Object,
impl<T> CenterObject for Twhere
T: Object,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ColorObject for Twhere
T: Object,
impl<T> ColorObject for Twhere
T: Object,
fn colored(self, color: impl ColorFormat) -> Colored<T>
Source§impl<T> DifferenceObject for Twhere
T: Object,
impl<T> DifferenceObject for Twhere
T: Object,
fn difference<Other: Object>(self, other: Other) -> Difference<Self, Other>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntersectionObject for Twhere
T: Object,
impl<T> IntersectionObject for Twhere
T: Object,
fn intersection<Other: Object>(self, other: Other) -> Intersection<Self, Other>
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 more