#[repr(transparent)]
pub struct Features(_);

Implementations§

source§

impl Features

source

pub const B32: Self = _

32-bit mode.

source

pub const B64: Self = _

64-bit mode.

source

pub const C601_INSTR: Self = _

601 chip, Old POWER ISA.

source

pub const HAS_ALTIVEC: Self = _

SIMD/Vector Unit.

source

pub const HAS_FPU: Self = _

Floating Point Unit.

source

pub const HAS_MMU: Self = _

Memory Management Unit.

source

pub const HAS_4xxMAC: Self = _

4xx Multiply Accumulator.

source

pub const UNIFIED_CACHE: Self = _

Unified I/D cache.

source

pub const HAS_SPE: Self = _

Signal Processing ext.

source

pub const HAS_EFP_SINGLE: Self = _

SPE Float.

source

pub const HAS_EFP_DOUBLE: Self = _

SPE Double.

source

pub const NO_TB: Self = _

601/403gx have no timebase

source

pub const POWER4: Self = _

POWER4 ISA 2.00

source

pub const POWER5: Self = _

POWER5 ISA 2.02

source

pub const POWER5_PLUS: Self = _

POWER5+ ISA 2.03

source

pub const CELL_BE: Self = _

CELL Broadband Engine

source

pub const BOOKE: Self = _

ISA Category Embedded

source

pub const SMT: Self = _

Simultaneous Multi-Threading

source

pub const ICACHE_SNOOP: Self = _

source

pub const ARCH_2_05: Self = _

ISA 2.05

source

pub const PA6T: Self = _

PA Semi 6T Core

source

pub const HAS_DFP: Self = _

Decimal FP Unit

source

pub const POWER6_EXT: Self = _

P6 + mffgpr/mftgpr

source

pub const ARCH_2_06: Self = _

ISA 2.06

source

pub const HAS_VSX: Self = _

P7 Vector Extension.

source

pub const PSERIES_PERFMON_COMPAT: Self = _

source

pub const TRUE_LE: Self = _

source

pub const PPC_LE: Self = _

source

pub const fn empty() -> Self

source

pub const fn all() -> Self

source

pub const fn from_bits(bits: usize) -> Self

source

pub const fn bits(&self) -> usize

source

pub const fn contains(&self, other: Self) -> bool

source

pub fn remove(&mut self, other: Self)

source

pub fn insert(&mut self, other: Self)

source

pub fn toggle(&mut self, other: Self)

Methods from Deref<Target = usize>§

1.43.0 · source

pub const MIN: usize = 0usize

1.43.0 · source

pub const MAX: usize = 18_446_744_073_709_551_615usize

1.53.0 · source

pub const BITS: u32 = 64u32

Trait Implementations§

source§

impl AsRef<usize> for Features

source§

fn as_ref(&self) -> &usize

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl BitAnd<Features> for Features

§

type Output = Features

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
source§

impl BitAnd<usize> for Features

§

type Output = Features

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: usize) -> Self

Performs the & operation. Read more
source§

impl BitAndAssign<Features> for Features

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitAndAssign<usize> for Features

source§

fn bitand_assign(&mut self, rhs: usize)

Performs the &= operation. Read more
source§

impl BitOr<Features> for Features

§

type Output = Features

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
source§

impl BitOr<usize> for Features

§

type Output = Features

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: usize) -> Self

Performs the | operation. Read more
source§

impl BitOrAssign<Features> for Features

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitOrAssign<usize> for Features

source§

fn bitor_assign(&mut self, rhs: usize)

Performs the |= operation. Read more
source§

impl Borrow<usize> for Features

source§

fn borrow(&self) -> &usize

Immutably borrows from an owned value. Read more
source§

impl Clone for Features

source§

fn clone(&self) -> Features

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Features

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Features

§

type Target = usize

The resulting type after dereferencing.
source§

fn deref(&self) -> &usize

Dereferences the value.
source§

impl From<Features> for usize

source§

fn from(value: Features) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Features

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for Features

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Features

source§

fn cmp(&self, other: &Features) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Features> for Features

source§

fn eq(&self, other: &Features) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Features> for Features

source§

fn partial_cmp(&self, other: &Features) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Features

source§

impl Eq for Features

source§

impl StructuralEq for Features

source§

impl StructuralPartialEq for Features

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.