Skip to main content

NodeTypeMut

Enum NodeTypeMut 

Source
pub enum NodeTypeMut<'a> {
    Clock(ClockNodeViewMut<'a>),
    Memory(MemoryNodeViewMut<'a>),
    InterruptController(IntcNodeViewMut<'a>),
    Pci(PciNodeViewMut<'a>),
    Generic(NodeGenericMut<'a>),
}
Expand description

Typed mutable node view enum.

Variants§

§

Clock(ClockNodeViewMut<'a>)

§

Memory(MemoryNodeViewMut<'a>)

§

InterruptController(IntcNodeViewMut<'a>)

§

Pci(PciNodeViewMut<'a>)

§

Generic(NodeGenericMut<'a>)

Implementations§

Source§

impl<'a> NodeTypeMut<'a>

Source

pub fn id(&self) -> NodeId

Returns the inner node ID regardless of variant.

Source

pub fn set_regs(&mut self, regs: &[RegInfo])

Sets the reg property from CPU addresses.

Converts CPU addresses to bus addresses using parent’s ranges property and stores them in big-endian format.

Trait Implementations§

Source§

impl<'a> From<ClockNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

fn from(v: ClockNodeViewMut<'a>) -> NodeTypeMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<IntcNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

fn from(v: IntcNodeViewMut<'a>) -> NodeTypeMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<MemoryNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

fn from(v: MemoryNodeViewMut<'a>) -> NodeTypeMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<NodeGenericMut<'a>> for NodeTypeMut<'a>

Source§

fn from(v: NodeGenericMut<'a>) -> NodeTypeMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<PciNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

fn from(v: PciNodeViewMut<'a>) -> NodeTypeMut<'a>

Converts to this type from the input type.
Source§

impl<'a> TryInto<ClockNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<ClockNodeViewMut<'a>, <Self as TryInto<ClockNodeViewMut<'a>>>::Error>

Performs the conversion.
Source§

impl<'a> TryInto<IntcNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<IntcNodeViewMut<'a>, <Self as TryInto<IntcNodeViewMut<'a>>>::Error>

Performs the conversion.
Source§

impl<'a> TryInto<MemoryNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<MemoryNodeViewMut<'a>, <Self as TryInto<MemoryNodeViewMut<'a>>>::Error>

Performs the conversion.
Source§

impl<'a> TryInto<NodeGenericMut<'a>> for NodeTypeMut<'a>

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<NodeGenericMut<'a>, <Self as TryInto<NodeGenericMut<'a>>>::Error>

Performs the conversion.
Source§

impl<'a> TryInto<PciNodeViewMut<'a>> for NodeTypeMut<'a>

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<PciNodeViewMut<'a>, <Self as TryInto<PciNodeViewMut<'a>>>::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> Freeze for NodeTypeMut<'a>

§

impl<'a> RefUnwindSafe for NodeTypeMut<'a>

§

impl<'a> Send for NodeTypeMut<'a>

§

impl<'a> !Sync for NodeTypeMut<'a>

§

impl<'a> Unpin for NodeTypeMut<'a>

§

impl<'a> UnsafeUnpin for NodeTypeMut<'a>

§

impl<'a> UnwindSafe for NodeTypeMut<'a>

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.