Struct cm_moniker::InstancedMoniker
source · pub struct InstancedMoniker { /* private fields */ }
Expand description
An instanced moniker describes the identity of a component instance in terms of its path relative to the root of the component instance tree.
A root moniker is a moniker with an empty path.
Instanced monikers are only used internally within the component manager. Externally, components are referenced by encoded moniker so as to minimize the amount of information which is disclosed about the overall structure of the component instance tree.
Display notation: “.”, “name1:1”, “name1:1/name2:2”, …
Implementations§
source§impl InstancedMoniker
impl InstancedMoniker
sourcepub fn from_moniker_with_zero_value_instance_ids(
moniker: &Moniker
) -> InstancedMoniker
pub fn from_moniker_with_zero_value_instance_ids( moniker: &Moniker ) -> InstancedMoniker
Create a new InstancedMoniker with zero-value InstanceIds for all path parts
in moniker
.
sourcepub fn without_instance_ids(&self) -> Moniker
pub fn without_instance_ids(&self) -> Moniker
Convert an InstancedMoniker into an allocated Moniker without InstanceIds
sourcepub fn with_zero_value_instance_ids(&self) -> InstancedMoniker
pub fn with_zero_value_instance_ids(&self) -> InstancedMoniker
Transforms an InstancedMoniker
into a representation where all dynamic children
have 0
value instance ids.
Trait Implementations§
source§impl Clone for InstancedMoniker
impl Clone for InstancedMoniker
source§fn clone(&self) -> InstancedMoniker
fn clone(&self) -> InstancedMoniker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstancedMoniker
impl Debug for InstancedMoniker
source§impl Default for InstancedMoniker
impl Default for InstancedMoniker
source§fn default() -> InstancedMoniker
fn default() -> InstancedMoniker
source§impl Display for InstancedMoniker
impl Display for InstancedMoniker
source§impl From<InstancedMoniker> for InstancedExtendedMoniker
impl From<InstancedMoniker> for InstancedExtendedMoniker
source§fn from(m: InstancedMoniker) -> Self
fn from(m: InstancedMoniker) -> Self
source§impl Hash for InstancedMoniker
impl Hash for InstancedMoniker
source§impl MonikerBase for InstancedMoniker
impl MonikerBase for InstancedMoniker
type Part = InstancedChildName
fn new(path: Vec<Self::Part>) -> Self
fn path(&self) -> &Vec<Self::Part>
fn path_mut(&mut self) -> &mut Vec<Self::Part>
fn parse<T>(path: &[T]) -> Result<Self, MonikerError>
fn parse_str(input: &str) -> Result<Self, MonikerError>
§fn concat<T>(&self, other: &T) -> Selfwhere
T: MonikerBase<Part = Self::Part>,
fn concat<T>(&self, other: &T) -> Selfwhere
T: MonikerBase<Part = Self::Part>,
§fn has_prefix<S>(&self, prefix: &S) -> boolwhere
S: MonikerBase<Part = Self::Part>,
fn has_prefix<S>(&self, prefix: &S) -> boolwhere
S: MonikerBase<Part = Self::Part>,
fn root() -> Self
fn leaf(&self) -> Option<&Self::Part>
fn is_root(&self) -> bool
fn parent(&self) -> Option<Self>
fn child(&self, child: Self::Part) -> Self
§fn strip_prefix<T>(&self, prefix: &T) -> Result<Self, MonikerError>where
T: MonikerBase<Part = Self::Part>,
fn strip_prefix<T>(&self, prefix: &T) -> Result<Self, MonikerError>where
T: MonikerBase<Part = Self::Part>,
fn compare(&self, other: &Self) -> Ordering
fn format(&self, f: &mut Formatter<'_>) -> Result<(), Error>
source§impl Ord for InstancedMoniker
impl Ord for InstancedMoniker
source§impl PartialEq for InstancedMoniker
impl PartialEq for InstancedMoniker
source§fn eq(&self, other: &InstancedMoniker) -> bool
fn eq(&self, other: &InstancedMoniker) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstancedMoniker
impl PartialOrd for InstancedMoniker
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more