pub enum ArchSpecificUnionContainer<T64, T32> {
Arch64(T64),
Arch32(T32),
}Expand description
Container that contains a union type that differs depending on the 32 vs 64 bit architecture.
Variants§
Trait Implementations§
Source§impl<T64, T32> ArchSpecific for ArchSpecificUnionContainer<T64, T32>
impl<T64, T32> ArchSpecific for ArchSpecificUnionContainer<T64, T32>
Source§impl<T64: Clone, T32: Clone> Clone for ArchSpecificUnionContainer<T64, T32>
impl<T64: Clone, T32: Clone> Clone for ArchSpecificUnionContainer<T64, T32>
Source§fn clone(&self) -> ArchSpecificUnionContainer<T64, T32>
fn clone(&self) -> ArchSpecificUnionContainer<T64, T32>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T64: Copy, T32: Copy> Copy for ArchSpecificUnionContainer<T64, T32>
Auto Trait Implementations§
impl<T64, T32> Freeze for ArchSpecificUnionContainer<T64, T32>
impl<T64, T32> RefUnwindSafe for ArchSpecificUnionContainer<T64, T32>where
T64: RefUnwindSafe,
T32: RefUnwindSafe,
impl<T64, T32> Send for ArchSpecificUnionContainer<T64, T32>
impl<T64, T32> Sync for ArchSpecificUnionContainer<T64, T32>
impl<T64, T32> Unpin for ArchSpecificUnionContainer<T64, T32>
impl<T64, T32> UnwindSafe for ArchSpecificUnionContainer<T64, T32>where
T64: UnwindSafe,
T32: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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