Struct atspi_common::object_match::ObjectMatchRuleBuilder
source · pub struct ObjectMatchRuleBuilder { /* private fields */ }
Expand description
The ‘builder’ type for MatchRule
.
Use its methods to set match criteria.
Implementations§
source§impl ObjectMatchRuleBuilder
impl ObjectMatchRuleBuilder
sourcepub fn attributes(
self,
attributes: HashMap<String, String>,
mt: MatchType,
) -> Self
pub fn attributes( self, attributes: HashMap<String, String>, mt: MatchType, ) -> Self
Insert a map of attributes
sourcepub fn interfaces<I>(self, interfaces: I, mt: MatchType) -> Self
pub fn interfaces<I>(self, interfaces: I, mt: MatchType) -> Self
Insert an InterfaceSet
from a collection of Interface
s
sourcepub fn invert(self, invert: bool) -> Self
pub fn invert(self, invert: bool) -> Self
Sets the inversion of the MatchRule
, defaults to false
, no inversion.
sourcepub fn build(self) -> ObjectMatchRule
pub fn build(self) -> ObjectMatchRule
Builds the ObjectMatchRule
Trait Implementations§
source§impl Clone for ObjectMatchRuleBuilder
impl Clone for ObjectMatchRuleBuilder
source§fn clone(&self) -> ObjectMatchRuleBuilder
fn clone(&self) -> ObjectMatchRuleBuilder
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 ObjectMatchRuleBuilder
impl Debug for ObjectMatchRuleBuilder
source§impl Default for ObjectMatchRuleBuilder
impl Default for ObjectMatchRuleBuilder
source§fn default() -> ObjectMatchRuleBuilder
fn default() -> ObjectMatchRuleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjectMatchRuleBuilder
impl RefUnwindSafe for ObjectMatchRuleBuilder
impl Send for ObjectMatchRuleBuilder
impl Sync for ObjectMatchRuleBuilder
impl Unpin for ObjectMatchRuleBuilder
impl UnwindSafe for ObjectMatchRuleBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.