pub struct NodeProperty {
pub key: NodePropertyKey,
pub value: NodePropertyValue,
}
Expand description
Definition of a property for a node. A property is commonly used to match a node to a driver for driver binding.
Fields§
§key: NodePropertyKey
§value: NodePropertyValue
Trait Implementations§
Source§impl Clone for NodeProperty
impl Clone for NodeProperty
Source§fn clone(&self) -> NodeProperty
fn clone(&self) -> NodeProperty
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NodeProperty
impl Debug for NodeProperty
Source§impl Encodable for NodeProperty
impl Encodable for NodeProperty
Source§type Encoded = WireNodeProperty
type Encoded = WireNodeProperty
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<NodeProperty>
impl EncodableOption for Box<NodeProperty>
Source§type EncodedOption = WireBox<WireNodeProperty>
type EncodedOption = WireBox<WireNodeProperty>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for NodePropertywhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for NodePropertywhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<NodeProperty>where
___E: Encoder + ?Sized,
NodeProperty: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<NodeProperty>where
___E: Encoder + ?Sized,
NodeProperty: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireNodeProperty> for NodeProperty
impl TakeFrom<WireNodeProperty> for NodeProperty
Source§fn take_from(from: &WireNodeProperty) -> Self
fn take_from(from: &WireNodeProperty) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for NodeProperty
impl RefUnwindSafe for NodeProperty
impl Send for NodeProperty
impl Sync for NodeProperty
impl Unpin for NodeProperty
impl UnwindSafe for NodeProperty
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