pub struct Name { /* private fields */ }Implementations§
Source§impl Name
impl Name
pub fn ends_with(&self, other: &Name) -> bool
Sourcepub fn contains(&self, other: &Name) -> bool
pub fn contains(&self, other: &Name) -> bool
matches ** -> any number of segments (prefix only), *+ -> matches one or more segments, * -> any one segment, @ -> empty
pub fn from_segments<S: AsRef<str>>( segments: impl IntoIterator<Item = S>, ) -> Result<Self, NameParseError>
pub fn push_segment( &mut self, segment: impl AsRef<str>, ) -> Result<(), NameParseError>
pub fn segments(&self) -> SegmentIterator<'_> ⓘ
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Name
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Name
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Name
impl Ord for Name
Source§impl PartialOrd for Name
impl PartialOrd for Name
impl Eq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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