PartialL1Section

Struct PartialL1Section 

Source
pub struct PartialL1Section<const MASK: u32>(/* private fields */);
Expand description

Partial builder struct

Implementations§

Source§

impl PartialL1Section<0>

Source

pub const fn with_base_addr_upper_bits( &self, value: u12, ) -> PartialL1Section<4293918720>

Section base address upper bits.

Source§

impl PartialL1Section<4293918720>

Source

pub const fn with_ng(&self, value: bool) -> PartialL1Section<4294049792>

Non-global bit.

Source§

impl PartialL1Section<4294049792>

Source

pub const fn with_s(&self, value: bool) -> PartialL1Section<4294115328>

Shareable bit.

Source§

impl PartialL1Section<4294115328>

Source

pub const fn with_apx(&self, value: bool) -> PartialL1Section<4294148096>

Source§

impl PartialL1Section<4294148096>

Source

pub const fn with_tex(&self, value: u3) -> PartialL1Section<4294176768>

Type extension bits.

Source§

impl PartialL1Section<4294176768>

Source

pub const fn with_ap(&self, value: u2) -> PartialL1Section<4294179840>

Source§

impl PartialL1Section<4294179840>

Source

pub const fn with_p_bit(&self, value: bool) -> PartialL1Section<4294180352>

Source§

impl PartialL1Section<4294180352>

Source

pub const fn with_domain(&self, value: u4) -> PartialL1Section<4294180832>

Source§

impl PartialL1Section<4294180832>

Source

pub const fn with_xn(&self, value: bool) -> PartialL1Section<4294180848>

Source§

impl PartialL1Section<4294180848>

Source

pub const fn with_c(&self, value: bool) -> PartialL1Section<4294180856>

Source§

impl PartialL1Section<4294180856>

Source

pub const fn with_b(&self, value: bool) -> PartialL1Section<4294180860>

Source§

impl PartialL1Section<4294180860>

Source

pub const fn with_entry_type( &self, value: L1EntryType, ) -> PartialL1Section<4294180863>

Source§

impl PartialL1Section<4294180863>

Source

pub const fn build(&self) -> L1Section

Builds the bitfield from the values passed into this builder

Auto Trait Implementations§

§

impl<const MASK: u32> Freeze for PartialL1Section<MASK>

§

impl<const MASK: u32> RefUnwindSafe for PartialL1Section<MASK>

§

impl<const MASK: u32> Send for PartialL1Section<MASK>

§

impl<const MASK: u32> Sync for PartialL1Section<MASK>

§

impl<const MASK: u32> Unpin for PartialL1Section<MASK>

§

impl<const MASK: u32> UnwindSafe for PartialL1Section<MASK>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.