pub enum ContextPredicate {
InString,
OutsideString,
InComment,
OutsideComment,
Quoted,
Unquoted,
Escaped,
Unescaped,
}Expand description
Context-aware predicates for string/comment/quote filtering
Variants§
InString
Inside a string literal
OutsideString
Outside a string literal
InComment
Inside a comment
OutsideComment
Outside a comment
Quoted
Quoted value
Unquoted
Unquoted value
Escaped
Escaped sequence
Unescaped
Unescaped content
Implementations§
Trait Implementations§
Source§impl Clone for ContextPredicate
impl Clone for ContextPredicate
Source§fn clone(&self) -> ContextPredicate
fn clone(&self) -> ContextPredicate
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 moreSource§impl Debug for ContextPredicate
impl Debug for ContextPredicate
Source§impl PartialEq for ContextPredicate
impl PartialEq for ContextPredicate
impl Copy for ContextPredicate
impl Eq for ContextPredicate
impl StructuralPartialEq for ContextPredicate
Auto Trait Implementations§
impl Freeze for ContextPredicate
impl RefUnwindSafe for ContextPredicate
impl Send for ContextPredicate
impl Sync for ContextPredicate
impl Unpin for ContextPredicate
impl UnwindSafe for ContextPredicate
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