pub enum RuleEntry {
Rule(Rule),
SubroutineDef {
kind: String,
name: String,
source_name: String,
span: Option<Span>,
name_span: Option<Span>,
body: Vec<Stmt>,
annotations: Vec<Annotation>,
},
}Expand description
An entry in rules: a rule or a subroutine definition.
Variants§
Rule(Rule)
A rule: an object without a kind tag.
SubroutineDef
A subroutine definition: { "kind": "subroutineDef", ... }.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleEntry
impl<'de> Deserialize<'de> for RuleEntry
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 StructuralPartialEq for RuleEntry
Auto Trait Implementations§
impl Freeze for RuleEntry
impl RefUnwindSafe for RuleEntry
impl Send for RuleEntry
impl Sync for RuleEntry
impl Unpin for RuleEntry
impl UnsafeUnpin for RuleEntry
impl UnwindSafe for RuleEntry
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