Skip to main content

SysRegSpec

Struct SysRegSpec 

Source
pub struct SysRegSpec<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access: Accessible>(/* private fields */);
Expand description

Tag for an arm64 system register, expressing its encoding and access permissons.

Trait Implementations§

Source§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access: Accessible> SystemRegisterSpec for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>

Source§

const OP0: u8 = OP0

The register encoding’s op0 parameter.
Source§

const OP1: u8 = OP1

The register encoding’s op1 parameter.
Source§

const CRN: u8 = CRN

The register encoding’s CRn parameter.
Source§

const CRM: u8 = CRM

The register encoding’s CRm parameter.
Source§

const OP2: u8 = OP2

The register encoding’s op2 parameter.
Source§

type Access = Access

The register’s access permissions.
Source§

const VALID: () = _

Whether the encoding is valid.

Auto Trait Implementations§

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> Freeze for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> RefUnwindSafe for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>
where Access: RefUnwindSafe,

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> Send for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>
where Access: Send,

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> Sync for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>
where Access: Sync,

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> Unpin for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>
where Access: Unpin,

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> UnsafeUnpin for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>

§

impl<const OP0: u8, const OP1: u8, const CRN: u8, const CRM: u8, const OP2: u8, Access> UnwindSafe for SysRegSpec<OP0, OP1, CRN, CRM, OP2, Access>
where Access: UnwindSafe,

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.