pub struct PrefixPattern {
pub first: Arc<str>,
pub rest: Vec<PatternToken>,
}Expand description
Prefix pattern for command matching
Fields§
§first: Arc<str>§rest: Vec<PatternToken>Trait Implementations§
Source§impl Clone for PrefixPattern
impl Clone for PrefixPattern
Source§fn clone(&self) -> PrefixPattern
fn clone(&self) -> PrefixPattern
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 moreAuto Trait Implementations§
impl Freeze for PrefixPattern
impl RefUnwindSafe for PrefixPattern
impl Send for PrefixPattern
impl Sync for PrefixPattern
impl Unpin for PrefixPattern
impl UnsafeUnpin for PrefixPattern
impl UnwindSafe for PrefixPattern
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