pub(crate) enum Slot {
Statement(BlockKind),
AfterIf,
Expression,
ArgumentStart(Call),
ArgumentValue(Call),
ImplicitMember(Call),
Type,
ForIn,
Nothing,
}Expand description
Where the cursor is, and so what may be typed there.
Variants§
Statement(BlockKind)
The start of a statement in a block.
AfterIf
Just after the } of an if, where else may follow.
Expression
Anywhere an expression may start.
ArgumentStart(Call)
The start of an argument, which may be a label or a value.
ArgumentValue(Call)
After label:.
ImplicitMember(Call)
After label: ..
Type
After a : or -> that a type follows.
ForIn
Between for item (or for index, item) and in.
Nothing
Where nothing can be completed: naming something new, after a value, after a .
on a value, or in a comment or string.
Trait Implementations§
impl Eq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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