pub enum PatternSegment {
Concrete(SubjectSegment),
WildcardOne,
WildcardMulti,
}Expand description
A single segment of a SubjectPattern.
Variants§
Concrete(SubjectSegment)
Matches one concrete segment by exact string equality.
WildcardOne
+ — matches any single concrete segment.
WildcardMulti
# — matches zero or more trailing concrete segments. Must be
the LAST segment of a pattern.
Trait Implementations§
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 (const: unstable) · 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<'de> Deserialize<'de> for PatternSegment
impl<'de> Deserialize<'de> for PatternSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PatternSegment
Source§impl Hash for PatternSegment
impl Hash for PatternSegment
Source§impl PartialEq for PatternSegment
impl PartialEq for PatternSegment
Source§impl Serialize for PatternSegment
impl Serialize 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 UnsafeUnpin 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