Enum query_structure::ast::EnumPosition
source · pub enum EnumPosition<'ast> {
Enum,
EnumAttribute(&'ast str, usize, AttributePosition<'ast>),
Value(EnumValueId, EnumValuePosition<'ast>),
}
Expand description
A cursor position in a context.
Variants§
Enum
In the enum, but not somewhere more specific.
EnumAttribute(&'ast str, usize, AttributePosition<'ast>)
In an attribute (attr name, attr index, position).
Value(EnumValueId, EnumValuePosition<'ast>)
In a value.
Trait Implementations§
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for EnumPosition<'ast>
impl<'ast> Send for EnumPosition<'ast>
impl<'ast> Sync for EnumPosition<'ast>
impl<'ast> Unpin for EnumPosition<'ast>
impl<'ast> UnwindSafe for EnumPosition<'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