DeserializeProperty

Trait DeserializeProperty 

Source
pub trait DeserializeProperty<'dtb>: Sized {
    // Required method
    fn deserialize(
        blob_prop: Property<'dtb>,
        cx: NodeContext<'_>,
    ) -> Result<Self>;
}
Expand description

Types that can be parsed from a devicetree property.

Required Methods§

Source

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Parses a devicetree property into this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'dtb> DeserializeProperty<'dtb> for &'dtb str

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for &'dtb [u8]

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for &'dtb [u32]

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Gives a devicetree property value as a big-endian u32 slice.

Source§

impl<'dtb> DeserializeProperty<'dtb> for bool

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for u32

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Gives a devicetree property value as a native-endian u32.

Source§

impl<'dtb> DeserializeProperty<'dtb> for u64

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Gives a devicetree property value as a native-endian u64.

Source§

impl<'dtb> DeserializeProperty<'dtb> for ()

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<str>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<[&'dtb str]>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<[u8]>

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<[u32]>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<[Box<str>]>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<[String]>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Box<[RegBlock]>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for String

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Vec<&'dtb str>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Vec<u8>

Source§

fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Vec<u32>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Vec<Box<str>>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Vec<String>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Vec<RegBlock>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Source§

impl<'dtb, T: DeserializeProperty<'dtb>> DeserializeProperty<'dtb> for Option<T>

Source§

fn deserialize(blob_prop: Property<'dtb>, cx: NodeContext<'_>) -> Result<Self>

Implementors§

Source§

impl<'dtb> DeserializeProperty<'dtb> for Status<'dtb>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Property<'dtb>

Source§

impl<'dtb> DeserializeProperty<'dtb> for AddressCells

Source§

impl<'dtb> DeserializeProperty<'dtb> for DeviceTypeCpu

Source§

impl<'dtb> DeserializeProperty<'dtb> for DeviceTypeMemory

Source§

impl<'dtb> DeserializeProperty<'dtb> for InitialMappedArea

Source§

impl<'dtb> DeserializeProperty<'dtb> for Ranges<'dtb>

Source§

impl<'dtb> DeserializeProperty<'dtb> for Reg<'dtb>

Source§

impl<'dtb> DeserializeProperty<'dtb> for SizeCells

Source§

impl<'dtb> DeserializeProperty<'dtb> for SmallU64

Source§

impl<'dtb> DeserializeProperty<'dtb> for Strings<'dtb>