pub struct ValidationSyntaxRule {
pub optional_body: bool,
pub accept_any_declaration: bool,
pub accept_any_rule: bool,
pub prelude: Rc<Vec<Rc<ValidationToken>>>,
pub block: Option<Rc<Vec<Rc<ValidationToken>>>>,
pub property_descriptors: Option<Rc<HashMap<String, Rc<Vec<Rc<ValidationToken>>>>>>,
}Expand description
parsed syntax rule of an at-rule (or a group)
Fields§
§optional_body: bool§accept_any_declaration: bool§accept_any_rule: bool§prelude: Rc<Vec<Rc<ValidationToken>>>§block: Option<Rc<Vec<Rc<ValidationToken>>>>§property_descriptors: Option<Rc<HashMap<String, Rc<Vec<Rc<ValidationToken>>>>>>Implementations§
Source§impl ValidationSyntaxRule
impl ValidationSyntaxRule
pub fn get_prelude_rules(&self) -> Option<Rc<Vec<Rc<ValidationToken>>>>
pub fn get_block_rules(&self) -> Option<Rc<Vec<Rc<ValidationToken>>>>
pub fn get_property_descriptors( &self, ) -> Option<Rc<HashMap<String, Rc<Vec<Rc<ValidationToken>>>>>>
Trait Implementations§
Source§impl Clone for ValidationSyntaxRule
impl Clone for ValidationSyntaxRule
Auto Trait Implementations§
impl !Send for ValidationSyntaxRule
impl !Sync for ValidationSyntaxRule
impl Forget for ValidationSyntaxRule
impl Freeze for ValidationSyntaxRule
impl Move for ValidationSyntaxRule
impl RefUnwindSafe for ValidationSyntaxRule
impl Unpin for ValidationSyntaxRule
impl UnsafeUnpin for ValidationSyntaxRule
impl UnwindSafe for ValidationSyntaxRule
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