pub struct Directive<'a> {
pub name: &'a str,
pub argument: Option<DirectiveArg<'a>>,
pub modifiers: Vec<&'a str>,
pub expression: Option<AttributeValue<'a>>,
pub head_loc: SourceLocation,
pub location: SourceLocation,
}
Expand description
Directive has the form v-name:arg.mod1.mod2=“expr”
Fields§
§name: &'a str
§argument: Option<DirectiveArg<'a>>
§modifiers: Vec<&'a str>
§expression: Option<AttributeValue<'a>>
§head_loc: SourceLocation
§location: SourceLocation
Implementations§
Source§impl<'a> Directive<'a>
impl<'a> Directive<'a>
pub fn has_empty_expr(&self) -> bool
pub fn check_empty_expr(&self, kind: ErrorKind) -> Option<CompilationError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Directive<'a>
impl<'a> RefUnwindSafe for Directive<'a>
impl<'a> Send for Directive<'a>
impl<'a> Sync for Directive<'a>
impl<'a> Unpin for Directive<'a>
impl<'a> UnwindSafe for Directive<'a>
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