pub enum MachineType {
X86_64(MachineTypeX86_64),
Aarch(MachineTypeAarch64),
}Expand description
Architecture-specific machine types accepted by this crate.
Variants§
X86_64(MachineTypeX86_64)
Aarch(MachineTypeAarch64)
Trait Implementations§
Source§impl Arbitrary for MachineType
impl Arbitrary for MachineType
Source§type Parameters = (<MachineTypeX86_64 as Arbitrary>::Parameters, <MachineTypeAarch64 as Arbitrary>::Parameters)
type Parameters = (<MachineTypeX86_64 as Arbitrary>::Parameters, <MachineTypeAarch64 as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<Map<<MachineTypeX86_64 as Arbitrary>::Strategy, fn(MachineTypeX86_64) -> MachineType>>), (u32, Arc<Map<<MachineTypeAarch64 as Arbitrary>::Strategy, fn(MachineTypeAarch64) -> MachineType>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<MachineTypeX86_64 as Arbitrary>::Strategy, fn(MachineTypeX86_64) -> MachineType>>), (u32, Arc<Map<<MachineTypeAarch64 as Arbitrary>::Strategy, fn(MachineTypeAarch64) -> MachineType>>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for MachineType
impl Clone for MachineType
Source§fn clone(&self) -> MachineType
fn clone(&self) -> MachineType
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 moreSource§impl Debug for MachineType
impl Debug for MachineType
Source§impl Hash for MachineType
impl Hash for MachineType
Source§impl Ord for MachineType
impl Ord for MachineType
Source§fn cmp(&self, other: &MachineType) -> Ordering
fn cmp(&self, other: &MachineType) -> Ordering
1.21.0 · 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 PartialEq for MachineType
impl PartialEq for MachineType
Source§impl PartialOrd for MachineType
impl PartialOrd for MachineType
impl Eq for MachineType
impl StructuralPartialEq for MachineType
Auto Trait Implementations§
impl Freeze for MachineType
impl RefUnwindSafe for MachineType
impl Send for MachineType
impl Sync for MachineType
impl Unpin for MachineType
impl UnsafeUnpin for MachineType
impl UnwindSafe for MachineType
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