[−][src]Enum lex::Kind
Represents a kind of lexical token.
Variants
A sequence of non US-ASCII chars. (code points above 127)
A single line-ending. (CR, LF, or CRLF)
A sequence of US-ASCII whitespace chars. (spaces and tabs)
A sequence of US-ASCII control chars. (0-31 & 127, excluding CR, LF, and TAB)
A sequence of US-ASCII letters, numbers, and underscores.
Special(u8)
A single special US-ASCII char not mentioned above.
Implementations
impl Kind
[src]
Formatting
pub fn fmt_value(&self, value: &str, f: &mut Formatter<'_>) -> Result<(), Error>
[src]
Formats the value of this kind with the formatter.
Trait Implementations
impl Clone for Kind
[src]
impl Copy for Kind
[src]
impl Debug for Kind
[src]
impl Display for Kind
[src]
impl Eq for Kind
[src]
impl Hash for Kind
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Kind
[src]
pub fn cmp(&self, other: &Kind) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Kind> for Kind
[src]
impl PartialOrd<Kind> for Kind
[src]
pub fn partial_cmp(&self, other: &Kind) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Kind) -> bool
[src]
pub fn le(&self, other: &Kind) -> bool
[src]
pub fn gt(&self, other: &Kind) -> bool
[src]
pub fn ge(&self, other: &Kind) -> bool
[src]
impl StructuralEq for Kind
[src]
impl StructuralPartialEq for Kind
[src]
Auto Trait Implementations
impl RefUnwindSafe for Kind
[src]
impl Send for Kind
[src]
impl Sync for Kind
[src]
impl Unpin for Kind
[src]
impl UnwindSafe for Kind
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,