pub enum Variant5<T0, T1, T2, T3, T4> {
V0(T0),
V1(T1),
V2(T2),
V3(T3),
V4(T4),
}Variants§
Implementations§
Source§impl<T0: 'static, T1: 'static, T2: 'static, T3: 'static, T4: 'static> Variant5<T0, T1, T2, T3, T4>
Returns Some(&T) if the active alternative has type T, else None.
impl<T0: 'static, T1: 'static, T2: 'static, T3: 'static, T4: 'static> Variant5<T0, T1, T2, T3, T4>
Returns Some(&T) if the active alternative has type T, else None.
Source§impl<T0: 'static, T1: 'static, T2: 'static, T3: 'static, T4: 'static> Variant5<T0, T1, T2, T3, T4>
impl<T0: 'static, T1: 'static, T2: 'static, T3: 'static, T4: 'static> Variant5<T0, T1, T2, T3, T4>
pub fn get_type_id<T: 'static>() -> i32
Source§impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
pub fn operator_assign_mut(&mut self, other: Self)
Source§impl<T0: PartialEq, T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> Variant5<T0, T1, T2, T3, T4>
impl<T0: PartialEq, T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> Variant5<T0, T1, T2, T3, T4>
pub fn variant_operator_eq(&self, other: &Self) -> bool
Source§impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
pub fn variant_operator_ne(&self, other: &Self) -> bool
Source§impl<T0: 'static, T1: 'static, T2: 'static, T3: 'static, T4: 'static> Variant5<T0, T1, T2, T3, T4>
impl<T0: 'static, T1: 'static, T2: 'static, T3: 'static, T4: 'static> Variant5<T0, T1, T2, T3, T4>
pub fn variant_t_enable_if_t_get_type_id_t<T: 'static>(value: T) -> Self
Source§impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> Variant5<T0, T1, T2, T3, T4>
impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> Variant5<T0, T1, T2, T3, T4>
pub fn variant_variant(&self) -> Self
Source§impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> Variant5<T0, T1, T2, T3, T4>
impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> Variant5<T0, T1, T2, T3, T4>
pub fn variant_variant_mut(&mut self) -> Self
Source§impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
pub fn variant_destructor(&mut self)
Source§impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> Variant5<T0, T1, T2, T3, T4>
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>
pub fn get_if_3(&self) -> Option<&T3>
pub fn get_if_3_mut(&mut self) -> Option<&mut T3>
pub fn get_if_4(&self) -> Option<&T4>
pub fn get_if_4_mut(&mut self) -> Option<&mut T4>
Trait Implementations§
Source§impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> Clone for Variant5<T0, T1, T2, T3, T4>
impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> Clone for Variant5<T0, T1, T2, T3, T4>
Source§impl<T0: Debug, T1: Debug, T2: Debug, T3: Debug, T4: Debug> Debug for Variant5<T0, T1, T2, T3, T4>
impl<T0: Debug, T1: Debug, T2: Debug, T3: Debug, T4: Debug> Debug for Variant5<T0, T1, T2, T3, T4>
impl<T0: Eq, T1: Eq, T2: Eq, T3: Eq, T4: Eq> Eq for Variant5<T0, T1, T2, T3, T4>
Source§impl<T0: PartialEq, T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> PartialEq for Variant5<T0, T1, T2, T3, T4>
impl<T0: PartialEq, T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> PartialEq for Variant5<T0, T1, T2, T3, T4>
impl<T0: PartialEq, T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> StructuralPartialEq for Variant5<T0, T1, T2, T3, T4>
Auto Trait Implementations§
impl<T0, T1, T2, T3, T4> Freeze for Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> RefUnwindSafe for Variant5<T0, T1, T2, T3, T4>where
T0: RefUnwindSafe,
T1: RefUnwindSafe,
T2: RefUnwindSafe,
T3: RefUnwindSafe,
T4: RefUnwindSafe,
impl<T0, T1, T2, T3, T4> Send for Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> Sync for Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> Unpin for Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> UnsafeUnpin for Variant5<T0, T1, T2, T3, T4>
impl<T0, T1, T2, T3, T4> UnwindSafe for Variant5<T0, T1, T2, T3, T4>
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