Enum Kind
pub(super) enum Kind<'a> {
Array,
Arrow,
CloseParen,
Colon,
Comma,
Comment {
line_start: bool,
text: &'a str,
},
Dict,
LineBreak,
OpenParen,
Question,
Unknown,
Word(&'a str),
}Available on crate feature
parse only.Expand description
A token of IDL text.
Variants§
Array
[].
Arrow
->.
CloseParen
).
Colon
:.
Comma
,.
Comment
A comment, without the leading # and one space.
Fields
Dict
[string].
LineBreak
The end of a line.
OpenParen
(.
Question
?.
Unknown
A character that doesn’t start a token.
Word(&'a str)
A keyword, a name or a primitive type.
Trait Implementations§
impl<'a> Copy for Kind<'a>
impl<'a> Eq for Kind<'a>
impl<'a> StructuralPartialEq for Kind<'a>
Auto Trait Implementations§
impl<'a> Freeze for Kind<'a>
impl<'a> RefUnwindSafe for Kind<'a>
impl<'a> Send for Kind<'a>
impl<'a> Sync for Kind<'a>
impl<'a> Unpin for Kind<'a>
impl<'a> UnsafeUnpin for Kind<'a>
impl<'a> UnwindSafe for Kind<'a>
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