pub struct Property<'dtb> { /* private fields */ }Expand description
A property contained in a Node.
Implementations§
Source§impl<'dtb> Property<'dtb>
impl<'dtb> Property<'dtb>
Sourcepub fn contextless_parse<T: DeserializeProperty<'dtb>>(self) -> Result<T>
pub fn contextless_parse<T: DeserializeProperty<'dtb>>(self) -> Result<T>
Parses the value. Equivalent to DeserializeProperty except that the
default NodeContext is used.
Trait Implementations§
Source§impl<'dtb> DeserializeProperty<'dtb> for Property<'dtb>
impl<'dtb> DeserializeProperty<'dtb> for Property<'dtb>
Source§fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>
fn deserialize(blob_prop: Property<'dtb>, _cx: NodeContext<'_>) -> Result<Self>
Parses a devicetree property into this type.
impl<'dtb> Copy for Property<'dtb>
Auto Trait Implementations§
impl<'dtb> Freeze for Property<'dtb>
impl<'dtb> RefUnwindSafe for Property<'dtb>
impl<'dtb> Send for Property<'dtb>
impl<'dtb> Sync for Property<'dtb>
impl<'dtb> Unpin for Property<'dtb>
impl<'dtb> UnwindSafe for Property<'dtb>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more