Enum parser_database::ast::AttributePosition
source · pub enum AttributePosition<'ast> {
Attribute,
Argument(&'ast str),
FunctionArgument(&'ast str, &'ast str),
}
Expand description
In an model attribute definition
Variants§
Attribute
Nowhere specific inside the attribute (attribute name)
Argument(&'ast str)
In an argument. (argument name)
FunctionArgument(&'ast str, &'ast str)
In an function argument. (function name, argument name)
Trait Implementations§
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for AttributePosition<'ast>
impl<'ast> Send for AttributePosition<'ast>
impl<'ast> Sync for AttributePosition<'ast>
impl<'ast> Unpin for AttributePosition<'ast>
impl<'ast> UnwindSafe for AttributePosition<'ast>
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