Struct PropertySelector
pub struct PropertySelector {
pub node_path: Vec<StringSelector>,
pub target_properties: StringSelector,
}
Expand description
A selector defining a set of nodes to match, and on those matched nodes a set of named properties to match.
Fields§
§node_path: Vec<StringSelector>
A vector of StringSelectors which serve as a pattern matcher for paths through a hierarchy of named nodes. Each entry in the vector is a selector for a single named node in a data hierarchy. The vector of selectors for named nodes, then, defines a selector on paths through the data hierarchy.
Node paths support wildcarding, which will glob a single level of a node hierarchy. eg: root/a/b//d will match all nodes named d which are below some child of node b. root/a/b/c will match all nodes below b which start with the character “c”.
target_properties: StringSelector
A StringSelector which serves as a pattern matcher for string-named properties on a node in a data hierarchy.
target_properties supports wildcarding, which will match against all properties on any node matched by node_path.
Trait Implementations§
§impl Clone for PropertySelector
impl Clone for PropertySelector
§fn clone(&self) -> PropertySelector
fn clone(&self) -> PropertySelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PropertySelector
impl Debug for PropertySelector
§impl<D> Decode<PropertySelector, D> for PropertySelectorwhere
D: ResourceDialect,
impl<D> Decode<PropertySelector, D> for PropertySelectorwhere
D: ResourceDialect,
§fn new_empty() -> PropertySelector
fn new_empty() -> PropertySelector
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<PropertySelector, D> for &PropertySelectorwhere
D: ResourceDialect,
impl<D> Encode<PropertySelector, D> for &PropertySelectorwhere
D: ResourceDialect,
§impl PartialEq for PropertySelector
impl PartialEq for PropertySelector
§impl TypeMarker for PropertySelector
impl TypeMarker for PropertySelector
§type Owned = PropertySelector
type Owned = PropertySelector
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for PropertySelector
impl ValueTypeMarker for PropertySelector
§type Borrowed<'a> = &'a PropertySelector
type Borrowed<'a> = &'a PropertySelector
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<PropertySelector as TypeMarker>::Owned,
) -> <PropertySelector as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PropertySelector as TypeMarker>::Owned, ) -> <PropertySelector as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.