Enum parser_database::ast::SchemaPosition
source · pub enum SchemaPosition<'ast> {
TopLevel,
Model(ModelId, ModelPosition<'ast>),
Enum(EnumId, EnumPosition<'ast>),
DataSource(SourceId, SourcePosition<'ast>),
}
Expand description
A cursor position in a schema.
Variants§
TopLevel
In-between top-level items
Model(ModelId, ModelPosition<'ast>)
In a model
Enum(EnumId, EnumPosition<'ast>)
In an enum
DataSource(SourceId, SourcePosition<'ast>)
In a datasource
Trait Implementations§
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for SchemaPosition<'ast>
impl<'ast> Send for SchemaPosition<'ast>
impl<'ast> Sync for SchemaPosition<'ast>
impl<'ast> Unpin for SchemaPosition<'ast>
impl<'ast> UnwindSafe for SchemaPosition<'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