pub struct PatternSegment(/* private fields */);Expand description
Segment of a pattern.
Used for matching against a single DomainSegment.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for PatternSegment
impl AsRef<str> for PatternSegment
Source§impl Clone for PatternSegment
impl Clone for PatternSegment
Source§fn clone(&self) -> PatternSegment
fn clone(&self) -> PatternSegment
Returns a duplicate 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 PatternSegment
impl Debug for PatternSegment
Source§impl Display for PatternSegment
impl Display for PatternSegment
Source§impl From<&DomainSegment> for PatternSegment
impl From<&DomainSegment> for PatternSegment
Source§fn from(value: &DomainSegment) -> Self
fn from(value: &DomainSegment) -> Self
Converts to this type from the input type.
Source§impl From<DomainSegment> for PatternSegment
impl From<DomainSegment> for PatternSegment
Source§fn from(value: DomainSegment) -> Self
fn from(value: DomainSegment) -> Self
Converts to this type from the input type.
Source§impl FromIterator<PatternSegment> for Pattern
impl FromIterator<PatternSegment> for Pattern
Source§fn from_iter<T: IntoIterator<Item = PatternSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for PatternSegment
impl Hash for PatternSegment
Source§impl Ord for PatternSegment
impl Ord for PatternSegment
Source§fn cmp(&self, other: &PatternSegment) -> Ordering
fn cmp(&self, other: &PatternSegment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PatternSegment
impl PartialEq for PatternSegment
Source§impl PartialOrd for PatternSegment
impl PartialOrd for PatternSegment
Source§impl TryFrom<&str> for PatternSegment
impl TryFrom<&str> for PatternSegment
Source§impl TryFrom<String> for PatternSegment
impl TryFrom<String> for PatternSegment
impl Eq for PatternSegment
impl StructuralPartialEq for PatternSegment
Auto Trait Implementations§
impl Freeze for PatternSegment
impl RefUnwindSafe for PatternSegment
impl Send for PatternSegment
impl Sync for PatternSegment
impl Unpin for PatternSegment
impl UnwindSafe for PatternSegment
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