pub enum PatternData {
Bytes(Vec<u8>),
String(String),
HexWildcard(String),
Regex(String),
}
Expand description
Pattern data
Variants§
Bytes(Vec<u8>)
Raw bytes
String(String)
String data
HexWildcard(String)
Hex pattern with wildcards (? for wildcard)
Regex(String)
Regular expression pattern
Trait Implementations§
Source§impl Clone for PatternData
impl Clone for PatternData
Source§fn clone(&self) -> PatternData
fn clone(&self) -> PatternData
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 PatternData
impl RefUnwindSafe for PatternData
impl Send for PatternData
impl Sync for PatternData
impl Unpin for PatternData
impl UnwindSafe for PatternData
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