Enum schema_ast::ast::ModelPosition
source · pub enum ModelPosition<'ast> {
Model,
ModelAttribute(&'ast str, usize, AttributePosition<'ast>),
Field(FieldId, FieldPosition<'ast>),
}
Expand description
A cursor position in a context.
Variants§
Model
In the model, but not somewhere more specific.
ModelAttribute(&'ast str, usize, AttributePosition<'ast>)
In an attribute (attr name, attr index, position).
Field(FieldId, FieldPosition<'ast>)
In a field.
Trait Implementations§
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for ModelPosition<'ast>
impl<'ast> Send for ModelPosition<'ast>
impl<'ast> Sync for ModelPosition<'ast>
impl<'ast> Unpin for ModelPosition<'ast>
impl<'ast> UnwindSafe for ModelPosition<'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