pub enum Variant3<T0, T1, T2> {
V0(T0),
V1(T1),
V2(T2),
}Variants§
Implementations§
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>where
T0: 'static,
T1: 'static,
T2: 'static,
Returns Some(&T) if the active alternative has type T, else None.
impl<T0, T1, T2> Variant3<T0, T1, T2>where
T0: 'static,
T1: 'static,
T2: 'static,
Returns Some(&T) if the active alternative has type T, else None.
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>where
T0: 'static,
T1: 'static,
T2: 'static,
impl<T0, T1, T2> Variant3<T0, T1, T2>where
T0: 'static,
T1: 'static,
T2: 'static,
pub fn get_type_id<T>() -> i32where
T: 'static,
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
pub fn operator_assign_mut(&mut self, other: Variant3<T0, T1, T2>)
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
pub fn variant_operator_eq(&self, other: &Variant3<T0, T1, T2>) -> bool
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
pub fn variant_operator_ne(&self, other: &Variant3<T0, T1, T2>) -> bool
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>where
T0: 'static,
T1: 'static,
T2: 'static,
impl<T0, T1, T2> Variant3<T0, T1, T2>where
T0: 'static,
T1: 'static,
T2: 'static,
pub fn variant_t_enable_if_t_get_type_id_t<T>(value: T) -> Variant3<T0, T1, T2>where
T: 'static,
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
pub fn variant_variant(&self) -> Variant3<T0, T1, T2>
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
pub fn variant_variant_mut(&mut self) -> Variant3<T0, T1, T2>
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
pub fn variant_destructor(&mut self)
Source§impl<T0, T1, T2> Variant3<T0, T1, T2>
impl<T0, T1, T2> Variant3<T0, T1, T2>
Sourcepub fn valueless_by_exception(&self) -> bool
pub fn valueless_by_exception(&self) -> bool
Always false (this port has no valueless state). Matches the C++
valueless_by_exception.
pub fn get_if_0(&self) -> Option<&T0>
pub fn get_if_0_mut(&mut self) -> Option<&mut T0>
pub fn get_if_1(&self) -> Option<&T1>
pub fn get_if_1_mut(&mut self) -> Option<&mut T1>
pub fn get_if_2(&self) -> Option<&T2>
pub fn get_if_2_mut(&mut self) -> Option<&mut T2>
Trait Implementations§
Source§impl DenseHasher<Variant3<*const Type, *const TypePackVar, *const Constraint>> for HashBlockedConstraintId
impl DenseHasher<Variant3<*const Type, *const TypePackVar, *const Constraint>> for HashBlockedConstraintId
fn hash(&self, key: &BlockedConstraintId) -> usize
impl<T0, T1, T2> Eq for Variant3<T0, T1, T2>
Source§impl<T0, T1, T2> PartialEq for Variant3<T0, T1, T2>
impl<T0, T1, T2> PartialEq for Variant3<T0, T1, T2>
impl<T0, T1, T2> StructuralPartialEq for Variant3<T0, T1, T2>
Auto Trait Implementations§
impl<T0, T1, T2> Freeze for Variant3<T0, T1, T2>
impl<T0, T1, T2> RefUnwindSafe for Variant3<T0, T1, T2>
impl<T0, T1, T2> Send for Variant3<T0, T1, T2>
impl<T0, T1, T2> Sync for Variant3<T0, T1, T2>
impl<T0, T1, T2> Unpin for Variant3<T0, T1, T2>
impl<T0, T1, T2> UnsafeUnpin for Variant3<T0, T1, T2>
impl<T0, T1, T2> UnwindSafe for Variant3<T0, T1, T2>
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