pub enum Variant7<T0, T1, T2, T3, T4, T5, T6> {
V0(T0),
V1(T1),
V2(T2),
V3(T3),
V4(T4),
V5(T5),
V6(T6),
}Variants§
Implementations§
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
Returns Some(&T) if the active alternative has type T, else None.
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
Returns Some(&T) if the active alternative has type T, else None.
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
pub fn get_if_mut<T>(&mut self) -> Option<&mut T>where
T: 'static,
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
pub fn get_type_id<T>() -> i32where
T: 'static,
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
pub fn operator_assign_mut( &mut self, other: Variant7<T0, T1, T2, T3, T4, T5, T6>, )
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
pub fn variant_operator_eq( &self, other: &Variant7<T0, T1, T2, T3, T4, T5, T6>, ) -> bool
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
pub fn variant_operator_ne( &self, other: &Variant7<T0, T1, T2, T3, T4, T5, T6>, ) -> bool
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: 'static,
T1: 'static,
T2: 'static,
T3: 'static,
T4: 'static,
T5: 'static,
T6: 'static,
pub fn variant_t_enable_if_t_get_type_id_t<T>(
value: T,
) -> Variant7<T0, T1, T2, T3, T4, T5, T6>where
T: 'static,
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
pub fn variant_variant(&self) -> Variant7<T0, T1, T2, T3, T4, T5, T6>
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
pub fn variant_variant_mut(&mut self) -> Variant7<T0, T1, T2, T3, T4, T5, T6>
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
pub fn variant_destructor(&mut self)
Source§impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Variant7<T0, T1, T2, T3, T4, T5, T6>
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>
pub fn get_if_5(&self) -> Option<&T5>
pub fn get_if_5_mut(&mut self) -> Option<&mut T5>
pub fn get_if_6(&self) -> Option<&T6>
pub fn get_if_6_mut(&mut self) -> Option<&mut T6>
Trait Implementations§
Source§impl<T0, T1, T2, T3, T4, T5, T6> Default for Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: Default,
impl<T0, T1, T2, T3, T4, T5, T6> Default for Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: Default,
impl<T0, T1, T2, T3, T4, T5, T6> Eq for Variant7<T0, T1, T2, T3, T4, T5, T6>
Source§impl<T0, T1, T2, T3, T4, T5, T6> PartialEq for Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> PartialEq for Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> StructuralPartialEq for Variant7<T0, T1, T2, T3, T4, T5, T6>
Auto Trait Implementations§
impl<T0, T1, T2, T3, T4, T5, T6> Freeze for Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> RefUnwindSafe for Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: RefUnwindSafe,
T1: RefUnwindSafe,
T2: RefUnwindSafe,
T3: RefUnwindSafe,
T4: RefUnwindSafe,
T5: RefUnwindSafe,
T6: RefUnwindSafe,
impl<T0, T1, T2, T3, T4, T5, T6> Send for Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Sync for Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> Unpin for Variant7<T0, T1, T2, T3, T4, T5, T6>
impl<T0, T1, T2, T3, T4, T5, T6> UnsafeUnpin for Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: UnsafeUnpin,
T1: UnsafeUnpin,
T2: UnsafeUnpin,
T3: UnsafeUnpin,
T4: UnsafeUnpin,
T5: UnsafeUnpin,
T6: UnsafeUnpin,
impl<T0, T1, T2, T3, T4, T5, T6> UnwindSafe for Variant7<T0, T1, T2, T3, T4, T5, T6>where
T0: UnwindSafe,
T1: UnwindSafe,
T2: UnwindSafe,
T3: UnwindSafe,
T4: UnwindSafe,
T5: UnwindSafe,
T6: 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