pub struct EditorExpectedSyntax {
pub kind: EditorExpectedSyntaxKind,
pub span: SourceSpan,
}Expand description
Parser-produced cursor context hint for completion and other editor features.
Fields§
§kind: EditorExpectedSyntaxKind§span: SourceSpanImplementations§
Source§impl EditorExpectedSyntax
impl EditorExpectedSyntax
pub fn new(kind: EditorExpectedSyntaxKind, span: SourceSpan) -> Self
Trait Implementations§
Source§impl Clone for EditorExpectedSyntax
impl Clone for EditorExpectedSyntax
impl Copy for EditorExpectedSyntax
Source§impl Debug for EditorExpectedSyntax
impl Debug for EditorExpectedSyntax
impl Eq for EditorExpectedSyntax
Source§impl PartialEq for EditorExpectedSyntax
impl PartialEq for EditorExpectedSyntax
impl StructuralPartialEq for EditorExpectedSyntax
Auto Trait Implementations§
impl Freeze for EditorExpectedSyntax
impl RefUnwindSafe for EditorExpectedSyntax
impl Send for EditorExpectedSyntax
impl Sync for EditorExpectedSyntax
impl Unpin for EditorExpectedSyntax
impl UnsafeUnpin for EditorExpectedSyntax
impl UnwindSafe for EditorExpectedSyntax
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.