Property

Enum Property 

Source
pub enum Property<'a> {
    Compatible(StrList<'a>),
    Model(Str<'a>),
    PHandle(PHandle),
    Status(Str<'a>),
    Reg(Reg<'a>),
    VirtualReg(u32),
    DmaCoherent,
    General {
        name: Str<'a>,
        value: &'a [u8],
    },
}
Expand description

属性

Variants§

§

Compatible(StrList<'a>)

§2.3.1 兼容性

§

Model(Str<'a>)

§2.3.2 型号

§

PHandle(PHandle)

§2.3.3 引用号

§

Status(Str<'a>)

§2.3.4 状态

§

Reg(Reg<'a>)

§2.3.6 寄存器

§

VirtualReg(u32)

§2.3.7 寄存器

§

DmaCoherent

§2.3.10 DMA 连贯性

§

General

一般属性

Fields

§name: Str<'a>
§value: &'a [u8]

Trait Implementations§

Source§

impl Debug for Property<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Property<'a>

§

impl<'a> RefUnwindSafe for Property<'a>

§

impl<'a> Send for Property<'a>

§

impl<'a> Sync for Property<'a>

§

impl<'a> Unpin for Property<'a>

§

impl<'a> UnwindSafe for Property<'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.