pub enum VariableDeclarationValue {
Bytes(Vec<u8>),
Regex(Regex),
HexString(Vec<Token>),
}Expand description
Value for a string associated with a rule.
Variants§
Bytes(Vec<u8>)
A raw byte string.
Regex(Regex)
A regular expression.
HexString(Vec<Token>)
A hex string.
Trait Implementations§
source§impl Clone for VariableDeclarationValue
impl Clone for VariableDeclarationValue
source§fn clone(&self) -> VariableDeclarationValue
fn clone(&self) -> VariableDeclarationValue
Returns a copy 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 VariableDeclarationValue
impl Debug for VariableDeclarationValue
source§impl PartialEq for VariableDeclarationValue
impl PartialEq for VariableDeclarationValue
source§fn eq(&self, other: &VariableDeclarationValue) -> bool
fn eq(&self, other: &VariableDeclarationValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VariableDeclarationValue
Auto Trait Implementations§
impl RefUnwindSafe for VariableDeclarationValue
impl Send for VariableDeclarationValue
impl Sync for VariableDeclarationValue
impl Unpin for VariableDeclarationValue
impl UnwindSafe for VariableDeclarationValue
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