pub enum AstKind {
Empty,
Anchor {
kind: AnchorKind,
},
Literal {
c: char,
escaped: bool,
},
Dot,
Class {
negated: bool,
items: Vec<ClassItem>,
set: ClassSet,
},
Group {
kind: GroupKind,
inner: NodeId,
},
Alt {
arms: Vec<NodeId>,
},
Concat {
parts: Vec<NodeId>,
},
Repeat {
inner: NodeId,
kind: RepKind,
greedy: bool,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstKind
impl<'de> Deserialize<'de> for AstKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AstKind
impl StructuralPartialEq for AstKind
Auto Trait Implementations§
impl Freeze for AstKind
impl RefUnwindSafe for AstKind
impl Send for AstKind
impl Sync for AstKind
impl Unpin for AstKind
impl UnsafeUnpin for AstKind
impl UnwindSafe for AstKind
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