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<VariableDeclarationValue> for VariableDeclarationValue
impl PartialEq<VariableDeclarationValue> 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 ==.