pub enum InjectedTokenKind {
UrlHost,
WordHost,
Path,
Command,
}Expand description
What a token is, which decides the atoms of a later call it is compared with.
Variants§
UrlHost
The host of a URL with a scheme (https://evil.example/x).
WordHost
A word that looks like a host name without a scheme (evil.com).
Path
An absolute path outside the project, ~ expanded.
Command
One command of a code span, as the classifier reads it (argv joined by spaces, quotes removed).
Implementations§
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
Source§impl Ord for TokenKind
impl Ord for TokenKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TokenKind
impl PartialOrd for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Forget for TokenKind
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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