/// Returns the relative moniker to be used for selectors.
/// For legacy components (v1), this is the relative moniker with respect to the root realm.
Returns the relative moniker to be used for selectors.
For legacy components (v1), this is the relative moniker with respect to the root realm.
Returns the relative moniker to be used for selectors . For legacy components ( v1 ) this is the relative moniker with respect to the root realm .
pub fn relative_moniker_for_selectors(&self) -> Moniker {
        match self {
            Self::Legacy { moniker, .. } => moniker.clone(),
            Self::Moniker(segments) => {
                if segments.is_empty() {
                    Moniker(vec![])
                } else {
                    Moniker(segments.iter().map(|s| s.to_string()).collect())
                }
            }
        }
    }
pub fn relative_moniker_for_selectors ( & self ) -> Moniker { match self { Self :: Legacy { moniker , .. } => moniker . clone ( ) , Self :: Moniker ( segments ) => { if segments . is_empty ( ) { Moniker ( vec ! [ ] ) } else { Moniker ( segments . iter ( ) . map ( | s | s . to_string ( ) ) . collect ( ) ) } } } }
Returns the relative moniker to be used for selectors.
Returns the relative moniker to be used for selectors .
&self