pub enum ExtendedMoniker {
ComponentInstance(Moniker),
ComponentManager,
}
Expand description
One of:
- A moniker
- A marker representing component manager’s realm
Variants§
Implementations§
§impl ExtendedMoniker
impl ExtendedMoniker
pub fn unwrap_instance_moniker_or<E>(&self, error: E) -> Result<&Moniker, E>where
E: Error,
pub fn has_prefix(&self, other: &ExtendedMoniker) -> bool
pub fn parse_str(rep: &str) -> Result<ExtendedMoniker, MonikerError>
Trait Implementations§
§impl Clone for ExtendedMoniker
impl Clone for ExtendedMoniker
§fn clone(&self) -> ExtendedMoniker
fn clone(&self) -> ExtendedMoniker
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 more§impl Debug for ExtendedMoniker
impl Debug for ExtendedMoniker
§impl Display for ExtendedMoniker
impl Display for ExtendedMoniker
§impl From<Moniker> for ExtendedMoniker
impl From<Moniker> for ExtendedMoniker
§fn from(m: Moniker) -> ExtendedMoniker
fn from(m: Moniker) -> ExtendedMoniker
Converts to this type from the input type.
§impl FromStr for ExtendedMoniker
impl FromStr for ExtendedMoniker
§impl Hash for ExtendedMoniker
impl Hash for ExtendedMoniker
§impl Ord for ExtendedMoniker
impl Ord for ExtendedMoniker
§impl PartialEq for ExtendedMoniker
impl PartialEq for ExtendedMoniker
§fn eq(&self, other: &ExtendedMoniker) -> bool
fn eq(&self, other: &ExtendedMoniker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ExtendedMoniker
impl PartialOrd for ExtendedMoniker
§fn partial_cmp(&self, other: &ExtendedMoniker) -> Option<Ordering>
fn partial_cmp(&self, other: &ExtendedMoniker) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl SelectorExt for ExtendedMoniker
impl SelectorExt for ExtendedMoniker
fn match_against_selectors<'a>( &self, selectors: impl IntoIterator<Item = &'a Selector>, ) -> impl Iterator<Item = Result<&'a Selector, Error>>
§fn match_against_selectors_and_tree_name<'a>(
&self,
tree_name: &str,
selectors: impl IntoIterator<Item = &'a Selector>,
) -> impl Iterator<Item = &'a Selector>
fn match_against_selectors_and_tree_name<'a>( &self, tree_name: &str, selectors: impl IntoIterator<Item = &'a Selector>, ) -> impl Iterator<Item = &'a Selector>
Invalid selectors are filtered out.
fn match_against_component_selectors<'a, S>(
&self,
selectors: &'a [S],
) -> Result<Vec<&'a ComponentSelector>, Error>where
S: Borrow<ComponentSelector>,
fn matches_selector(&self, selector: &Selector) -> Result<bool, Error>
fn matches_component_selector( &self, selector: &ComponentSelector, ) -> Result<bool, Error>
fn sanitized(&self) -> String
fn into_component_selector(self) -> ComponentSelector
§impl TryFrom<&str> for ExtendedMoniker
impl TryFrom<&str> for ExtendedMoniker
impl Eq for ExtendedMoniker
impl StructuralPartialEq for ExtendedMoniker
Auto Trait Implementations§
impl Freeze for ExtendedMoniker
impl RefUnwindSafe for ExtendedMoniker
impl Send for ExtendedMoniker
impl Sync for ExtendedMoniker
impl Unpin for ExtendedMoniker
impl UnwindSafe for ExtendedMoniker
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
)