Skip to main content

Token

Enum Token 

Source
pub enum Token {
Show 106 variants LeftAngle(Extent), LeftCurly(Extent), LeftParen(Extent), LeftSquare(Extent), RightAngle(Extent), RightCurly(Extent), RightParen(Extent), RightSquare(Extent), Ampersand(Extent), AmpersandEquals(Extent), Asterisk(Extent), At(Extent), Backslash(Extent), Bang(Extent), Caret(Extent), CaretEquals(Extent), Colon(Extent), Comma(Extent), DivideEquals(Extent), Dollar(Extent), DoubleAmpersand(Extent), DoubleColon(Extent), DoubleEquals(Extent), DoubleLeftAngle(Extent), DoublePeriod(Extent), DoublePeriodEquals(Extent), DoublePipe(Extent), DoubleRightAngle(Extent), Equals(Extent), GreaterThanOrEquals(Extent), Hash(Extent), LessThanOrEquals(Extent), Minus(Extent), MinusEquals(Extent), NotEqual(Extent), Percent(Extent), PercentEquals(Extent), Period(Extent), Pipe(Extent), PipeEquals(Extent), Plus(Extent), PlusEquals(Extent), QuestionMark(Extent), Semicolon(Extent), ShiftLeftEquals(Extent), ShiftRightEquals(Extent), Slash(Extent), ThickArrow(Extent), ThinArrow(Extent), Tilde(Extent), TimesEquals(Extent), TriplePeriod(Extent), As(Extent), Async(Extent), Auto(Extent), Box(Extent), Break(Extent), Const(Extent), Continue(Extent), Crate(Extent), Default(Extent), Dyn(Extent), Else(Extent), Enum(Extent), Extern(Extent), Fn(Extent), For(Extent), If(Extent), Impl(Extent), In(Extent), Let(Extent), Loop(Extent), Match(Extent), Mod(Extent), Move(Extent), Mut(Extent), Pub(Extent), Ref(Extent), Return(Extent), SelfIdent(Extent), Static(Extent), Struct(Extent), Trait(Extent), Type(Extent), Union(Extent), Unsafe(Extent), Use(Extent), Where(Extent), While(Extent), Character(Extent), String(Extent), StringRaw(Extent), Byte(Extent), ByteString(Extent), ByteStringRaw(Extent), Ident(Extent), Number(Number), Whitespace(Extent), CommentLine(Extent), CommentBlock(Extent), DocCommentOuterLine(Extent), DocCommentInnerLine(Extent), DocCommentOuterBlock(Extent), DocCommentInnerBlock(Extent), Lifetime(Extent), EndOfFile(Extent),
}

Variants§

§

LeftAngle(Extent)

§

LeftCurly(Extent)

§

LeftParen(Extent)

§

LeftSquare(Extent)

§

RightAngle(Extent)

§

RightCurly(Extent)

§

RightParen(Extent)

§

RightSquare(Extent)

§

Ampersand(Extent)

§

AmpersandEquals(Extent)

§

Asterisk(Extent)

§

At(Extent)

§

Backslash(Extent)

§

Bang(Extent)

§

Caret(Extent)

§

CaretEquals(Extent)

§

Colon(Extent)

§

Comma(Extent)

§

DivideEquals(Extent)

§

Dollar(Extent)

§

DoubleAmpersand(Extent)

§

DoubleColon(Extent)

§

DoubleEquals(Extent)

§

DoubleLeftAngle(Extent)

§

DoublePeriod(Extent)

§

DoublePeriodEquals(Extent)

§

DoublePipe(Extent)

§

DoubleRightAngle(Extent)

§

Equals(Extent)

§

GreaterThanOrEquals(Extent)

§

Hash(Extent)

§

LessThanOrEquals(Extent)

§

Minus(Extent)

§

MinusEquals(Extent)

§

NotEqual(Extent)

§

Percent(Extent)

§

PercentEquals(Extent)

§

Period(Extent)

§

Pipe(Extent)

§

PipeEquals(Extent)

§

Plus(Extent)

§

PlusEquals(Extent)

§

QuestionMark(Extent)

§

Semicolon(Extent)

§

ShiftLeftEquals(Extent)

§

ShiftRightEquals(Extent)

§

Slash(Extent)

§

ThickArrow(Extent)

§

ThinArrow(Extent)

§

Tilde(Extent)

§

TimesEquals(Extent)

§

TriplePeriod(Extent)

§

As(Extent)

§

Async(Extent)

§

Auto(Extent)

§

Box(Extent)

§

Break(Extent)

§

Const(Extent)

§

Continue(Extent)

§

Crate(Extent)

§

Default(Extent)

§

Dyn(Extent)

§

Else(Extent)

§

Enum(Extent)

§

Extern(Extent)

§

Fn(Extent)

§

For(Extent)

§

If(Extent)

§

Impl(Extent)

§

In(Extent)

§

Let(Extent)

§

Loop(Extent)

§

Match(Extent)

§

Mod(Extent)

§

Move(Extent)

§

Mut(Extent)

§

Pub(Extent)

§

Ref(Extent)

§

Return(Extent)

§

SelfIdent(Extent)

§

Static(Extent)

§

Struct(Extent)

§

Trait(Extent)

§

Type(Extent)

§

Union(Extent)

§

Unsafe(Extent)

§

Use(Extent)

§

Where(Extent)

§

While(Extent)

§

Character(Extent)

§

String(Extent)

§

StringRaw(Extent)

§

Byte(Extent)

§

ByteString(Extent)

§

ByteStringRaw(Extent)

§

Ident(Extent)

§

Number(Number)

§

Whitespace(Extent)

§

CommentLine(Extent)

§

CommentBlock(Extent)

§

DocCommentOuterLine(Extent)

§

DocCommentInnerLine(Extent)

§

DocCommentOuterBlock(Extent)

§

DocCommentInnerBlock(Extent)

§

Lifetime(Extent)

§

EndOfFile(Extent)

Implementations§

Source§

impl Token

Source

pub fn into_left_angle(self) -> Option<Extent>

Source

pub fn into_left_curly(self) -> Option<Extent>

Source

pub fn into_left_paren(self) -> Option<Extent>

Source

pub fn into_left_square(self) -> Option<Extent>

Source

pub fn into_right_angle(self) -> Option<Extent>

Source

pub fn into_right_curly(self) -> Option<Extent>

Source

pub fn into_right_paren(self) -> Option<Extent>

Source

pub fn into_right_square(self) -> Option<Extent>

Source

pub fn into_ampersand(self) -> Option<Extent>

Source

pub fn into_ampersand_equals(self) -> Option<Extent>

Source

pub fn into_asterisk(self) -> Option<Extent>

Source

pub fn into_at(self) -> Option<Extent>

Source

pub fn into_backslash(self) -> Option<Extent>

Source

pub fn into_bang(self) -> Option<Extent>

Source

pub fn into_caret(self) -> Option<Extent>

Source

pub fn into_caret_equals(self) -> Option<Extent>

Source

pub fn into_colon(self) -> Option<Extent>

Source

pub fn into_comma(self) -> Option<Extent>

Source

pub fn into_divide_equals(self) -> Option<Extent>

Source

pub fn into_dollar(self) -> Option<Extent>

Source

pub fn into_double_ampersand(self) -> Option<Extent>

Source

pub fn into_double_colon(self) -> Option<Extent>

Source

pub fn into_double_equals(self) -> Option<Extent>

Source

pub fn into_double_left_angle(self) -> Option<Extent>

Source

pub fn into_double_period(self) -> Option<Extent>

Source

pub fn into_double_period_equals(self) -> Option<Extent>

Source

pub fn into_double_pipe(self) -> Option<Extent>

Source

pub fn into_double_right_angle(self) -> Option<Extent>

Source

pub fn into_equals(self) -> Option<Extent>

Source

pub fn into_greater_than_or_equals(self) -> Option<Extent>

Source

pub fn into_hash(self) -> Option<Extent>

Source

pub fn into_less_than_or_equals(self) -> Option<Extent>

Source

pub fn into_minus(self) -> Option<Extent>

Source

pub fn into_minus_equals(self) -> Option<Extent>

Source

pub fn into_not_equal(self) -> Option<Extent>

Source

pub fn into_percent(self) -> Option<Extent>

Source

pub fn into_percent_equals(self) -> Option<Extent>

Source

pub fn into_period(self) -> Option<Extent>

Source

pub fn into_pipe(self) -> Option<Extent>

Source

pub fn into_pipe_equals(self) -> Option<Extent>

Source

pub fn into_plus(self) -> Option<Extent>

Source

pub fn into_plus_equals(self) -> Option<Extent>

Source

pub fn into_question_mark(self) -> Option<Extent>

Source

pub fn into_semicolon(self) -> Option<Extent>

Source

pub fn into_shift_left_equals(self) -> Option<Extent>

Source

pub fn into_shift_right_equals(self) -> Option<Extent>

Source

pub fn into_slash(self) -> Option<Extent>

Source

pub fn into_thick_arrow(self) -> Option<Extent>

Source

pub fn into_thin_arrow(self) -> Option<Extent>

Source

pub fn into_tilde(self) -> Option<Extent>

Source

pub fn into_times_equals(self) -> Option<Extent>

Source

pub fn into_triple_period(self) -> Option<Extent>

Source

pub fn into_as(self) -> Option<Extent>

Source

pub fn into_async(self) -> Option<Extent>

Source

pub fn into_auto(self) -> Option<Extent>

Source

pub fn into_box(self) -> Option<Extent>

Source

pub fn into_break(self) -> Option<Extent>

Source

pub fn into_const(self) -> Option<Extent>

Source

pub fn into_continue(self) -> Option<Extent>

Source

pub fn into_crate(self) -> Option<Extent>

Source

pub fn into_default(self) -> Option<Extent>

Source

pub fn into_dyn(self) -> Option<Extent>

Source

pub fn into_else(self) -> Option<Extent>

Source

pub fn into_enum(self) -> Option<Extent>

Source

pub fn into_extern(self) -> Option<Extent>

Source

pub fn into_fn(self) -> Option<Extent>

Source

pub fn into_for(self) -> Option<Extent>

Source

pub fn into_if(self) -> Option<Extent>

Source

pub fn into_impl(self) -> Option<Extent>

Source

pub fn into_in(self) -> Option<Extent>

Source

pub fn into_let(self) -> Option<Extent>

Source

pub fn into_loop(self) -> Option<Extent>

Source

pub fn into_match(self) -> Option<Extent>

Source

pub fn into_mod(self) -> Option<Extent>

Source

pub fn into_move(self) -> Option<Extent>

Source

pub fn into_mut(self) -> Option<Extent>

Source

pub fn into_pub(self) -> Option<Extent>

Source

pub fn into_ref(self) -> Option<Extent>

Source

pub fn into_return(self) -> Option<Extent>

Source

pub fn into_self_ident(self) -> Option<Extent>

Source

pub fn into_static(self) -> Option<Extent>

Source

pub fn into_struct(self) -> Option<Extent>

Source

pub fn into_trait(self) -> Option<Extent>

Source

pub fn into_type(self) -> Option<Extent>

Source

pub fn into_union(self) -> Option<Extent>

Source

pub fn into_unsafe(self) -> Option<Extent>

Source

pub fn into_use(self) -> Option<Extent>

Source

pub fn into_where(self) -> Option<Extent>

Source

pub fn into_while(self) -> Option<Extent>

Source

pub fn into_character(self) -> Option<Extent>

Source

pub fn into_string(self) -> Option<Extent>

Source

pub fn into_string_raw(self) -> Option<Extent>

Source

pub fn into_byte(self) -> Option<Extent>

Source

pub fn into_byte_string(self) -> Option<Extent>

Source

pub fn into_byte_string_raw(self) -> Option<Extent>

Source

pub fn into_ident(self) -> Option<Extent>

Source

pub fn into_number(self) -> Option<Number>

Source

pub fn into_whitespace(self) -> Option<Extent>

Source

pub fn into_comment_line(self) -> Option<Extent>

Source

pub fn into_comment_block(self) -> Option<Extent>

Source

pub fn into_doc_comment_outer_line(self) -> Option<Extent>

Source

pub fn into_doc_comment_inner_line(self) -> Option<Extent>

Source

pub fn into_doc_comment_outer_block(self) -> Option<Extent>

Source

pub fn into_doc_comment_inner_block(self) -> Option<Extent>

Source

pub fn into_lifetime(self) -> Option<Extent>

Source

pub fn into_end_of_file(self) -> Option<Extent>

Source

pub fn as_left_angle(&self) -> Option<&Extent>

Source

pub fn as_left_curly(&self) -> Option<&Extent>

Source

pub fn as_left_paren(&self) -> Option<&Extent>

Source

pub fn as_left_square(&self) -> Option<&Extent>

Source

pub fn as_right_angle(&self) -> Option<&Extent>

Source

pub fn as_right_curly(&self) -> Option<&Extent>

Source

pub fn as_right_paren(&self) -> Option<&Extent>

Source

pub fn as_right_square(&self) -> Option<&Extent>

Source

pub fn as_ampersand(&self) -> Option<&Extent>

Source

pub fn as_ampersand_equals(&self) -> Option<&Extent>

Source

pub fn as_asterisk(&self) -> Option<&Extent>

Source

pub fn as_at(&self) -> Option<&Extent>

Source

pub fn as_backslash(&self) -> Option<&Extent>

Source

pub fn as_bang(&self) -> Option<&Extent>

Source

pub fn as_caret(&self) -> Option<&Extent>

Source

pub fn as_caret_equals(&self) -> Option<&Extent>

Source

pub fn as_colon(&self) -> Option<&Extent>

Source

pub fn as_comma(&self) -> Option<&Extent>

Source

pub fn as_divide_equals(&self) -> Option<&Extent>

Source

pub fn as_dollar(&self) -> Option<&Extent>

Source

pub fn as_double_ampersand(&self) -> Option<&Extent>

Source

pub fn as_double_colon(&self) -> Option<&Extent>

Source

pub fn as_double_equals(&self) -> Option<&Extent>

Source

pub fn as_double_left_angle(&self) -> Option<&Extent>

Source

pub fn as_double_period(&self) -> Option<&Extent>

Source

pub fn as_double_period_equals(&self) -> Option<&Extent>

Source

pub fn as_double_pipe(&self) -> Option<&Extent>

Source

pub fn as_double_right_angle(&self) -> Option<&Extent>

Source

pub fn as_equals(&self) -> Option<&Extent>

Source

pub fn as_greater_than_or_equals(&self) -> Option<&Extent>

Source

pub fn as_hash(&self) -> Option<&Extent>

Source

pub fn as_less_than_or_equals(&self) -> Option<&Extent>

Source

pub fn as_minus(&self) -> Option<&Extent>

Source

pub fn as_minus_equals(&self) -> Option<&Extent>

Source

pub fn as_not_equal(&self) -> Option<&Extent>

Source

pub fn as_percent(&self) -> Option<&Extent>

Source

pub fn as_percent_equals(&self) -> Option<&Extent>

Source

pub fn as_period(&self) -> Option<&Extent>

Source

pub fn as_pipe(&self) -> Option<&Extent>

Source

pub fn as_pipe_equals(&self) -> Option<&Extent>

Source

pub fn as_plus(&self) -> Option<&Extent>

Source

pub fn as_plus_equals(&self) -> Option<&Extent>

Source

pub fn as_question_mark(&self) -> Option<&Extent>

Source

pub fn as_semicolon(&self) -> Option<&Extent>

Source

pub fn as_shift_left_equals(&self) -> Option<&Extent>

Source

pub fn as_shift_right_equals(&self) -> Option<&Extent>

Source

pub fn as_slash(&self) -> Option<&Extent>

Source

pub fn as_thick_arrow(&self) -> Option<&Extent>

Source

pub fn as_thin_arrow(&self) -> Option<&Extent>

Source

pub fn as_tilde(&self) -> Option<&Extent>

Source

pub fn as_times_equals(&self) -> Option<&Extent>

Source

pub fn as_triple_period(&self) -> Option<&Extent>

Source

pub fn as_as(&self) -> Option<&Extent>

Source

pub fn as_async(&self) -> Option<&Extent>

Source

pub fn as_auto(&self) -> Option<&Extent>

Source

pub fn as_box(&self) -> Option<&Extent>

Source

pub fn as_break(&self) -> Option<&Extent>

Source

pub fn as_const(&self) -> Option<&Extent>

Source

pub fn as_continue(&self) -> Option<&Extent>

Source

pub fn as_crate(&self) -> Option<&Extent>

Source

pub fn as_default(&self) -> Option<&Extent>

Source

pub fn as_dyn(&self) -> Option<&Extent>

Source

pub fn as_else(&self) -> Option<&Extent>

Source

pub fn as_enum(&self) -> Option<&Extent>

Source

pub fn as_extern(&self) -> Option<&Extent>

Source

pub fn as_fn(&self) -> Option<&Extent>

Source

pub fn as_for(&self) -> Option<&Extent>

Source

pub fn as_if(&self) -> Option<&Extent>

Source

pub fn as_impl(&self) -> Option<&Extent>

Source

pub fn as_in(&self) -> Option<&Extent>

Source

pub fn as_let(&self) -> Option<&Extent>

Source

pub fn as_loop(&self) -> Option<&Extent>

Source

pub fn as_match(&self) -> Option<&Extent>

Source

pub fn as_mod(&self) -> Option<&Extent>

Source

pub fn as_move(&self) -> Option<&Extent>

Source

pub fn as_mut(&self) -> Option<&Extent>

Source

pub fn as_pub(&self) -> Option<&Extent>

Source

pub fn as_ref(&self) -> Option<&Extent>

Source

pub fn as_return(&self) -> Option<&Extent>

Source

pub fn as_self_ident(&self) -> Option<&Extent>

Source

pub fn as_static(&self) -> Option<&Extent>

Source

pub fn as_struct(&self) -> Option<&Extent>

Source

pub fn as_trait(&self) -> Option<&Extent>

Source

pub fn as_type(&self) -> Option<&Extent>

Source

pub fn as_union(&self) -> Option<&Extent>

Source

pub fn as_unsafe(&self) -> Option<&Extent>

Source

pub fn as_use(&self) -> Option<&Extent>

Source

pub fn as_where(&self) -> Option<&Extent>

Source

pub fn as_while(&self) -> Option<&Extent>

Source

pub fn as_character(&self) -> Option<&Extent>

Source

pub fn as_string(&self) -> Option<&Extent>

Source

pub fn as_string_raw(&self) -> Option<&Extent>

Source

pub fn as_byte(&self) -> Option<&Extent>

Source

pub fn as_byte_string(&self) -> Option<&Extent>

Source

pub fn as_byte_string_raw(&self) -> Option<&Extent>

Source

pub fn as_ident(&self) -> Option<&Extent>

Source

pub fn as_number(&self) -> Option<&Number>

Source

pub fn as_whitespace(&self) -> Option<&Extent>

Source

pub fn as_comment_line(&self) -> Option<&Extent>

Source

pub fn as_comment_block(&self) -> Option<&Extent>

Source

pub fn as_doc_comment_outer_line(&self) -> Option<&Extent>

Source

pub fn as_doc_comment_inner_line(&self) -> Option<&Extent>

Source

pub fn as_doc_comment_outer_block(&self) -> Option<&Extent>

Source

pub fn as_doc_comment_inner_block(&self) -> Option<&Extent>

Source

pub fn as_lifetime(&self) -> Option<&Extent>

Source

pub fn as_end_of_file(&self) -> Option<&Extent>

Source

pub fn is_left_angle(&self) -> bool

Source

pub fn is_left_curly(&self) -> bool

Source

pub fn is_left_paren(&self) -> bool

Source

pub fn is_left_square(&self) -> bool

Source

pub fn is_right_angle(&self) -> bool

Source

pub fn is_right_curly(&self) -> bool

Source

pub fn is_right_paren(&self) -> bool

Source

pub fn is_right_square(&self) -> bool

Source

pub fn is_ampersand(&self) -> bool

Source

pub fn is_ampersand_equals(&self) -> bool

Source

pub fn is_asterisk(&self) -> bool

Source

pub fn is_at(&self) -> bool

Source

pub fn is_backslash(&self) -> bool

Source

pub fn is_bang(&self) -> bool

Source

pub fn is_caret(&self) -> bool

Source

pub fn is_caret_equals(&self) -> bool

Source

pub fn is_colon(&self) -> bool

Source

pub fn is_comma(&self) -> bool

Source

pub fn is_divide_equals(&self) -> bool

Source

pub fn is_dollar(&self) -> bool

Source

pub fn is_double_ampersand(&self) -> bool

Source

pub fn is_double_colon(&self) -> bool

Source

pub fn is_double_equals(&self) -> bool

Source

pub fn is_double_left_angle(&self) -> bool

Source

pub fn is_double_period(&self) -> bool

Source

pub fn is_double_period_equals(&self) -> bool

Source

pub fn is_double_pipe(&self) -> bool

Source

pub fn is_double_right_angle(&self) -> bool

Source

pub fn is_equals(&self) -> bool

Source

pub fn is_greater_than_or_equals(&self) -> bool

Source

pub fn is_hash(&self) -> bool

Source

pub fn is_less_than_or_equals(&self) -> bool

Source

pub fn is_minus(&self) -> bool

Source

pub fn is_minus_equals(&self) -> bool

Source

pub fn is_not_equal(&self) -> bool

Source

pub fn is_percent(&self) -> bool

Source

pub fn is_percent_equals(&self) -> bool

Source

pub fn is_period(&self) -> bool

Source

pub fn is_pipe(&self) -> bool

Source

pub fn is_pipe_equals(&self) -> bool

Source

pub fn is_plus(&self) -> bool

Source

pub fn is_plus_equals(&self) -> bool

Source

pub fn is_question_mark(&self) -> bool

Source

pub fn is_semicolon(&self) -> bool

Source

pub fn is_shift_left_equals(&self) -> bool

Source

pub fn is_shift_right_equals(&self) -> bool

Source

pub fn is_slash(&self) -> bool

Source

pub fn is_thick_arrow(&self) -> bool

Source

pub fn is_thin_arrow(&self) -> bool

Source

pub fn is_tilde(&self) -> bool

Source

pub fn is_times_equals(&self) -> bool

Source

pub fn is_triple_period(&self) -> bool

Source

pub fn is_as(&self) -> bool

Source

pub fn is_async(&self) -> bool

Source

pub fn is_auto(&self) -> bool

Source

pub fn is_box(&self) -> bool

Source

pub fn is_break(&self) -> bool

Source

pub fn is_const(&self) -> bool

Source

pub fn is_continue(&self) -> bool

Source

pub fn is_crate(&self) -> bool

Source

pub fn is_default(&self) -> bool

Source

pub fn is_dyn(&self) -> bool

Source

pub fn is_else(&self) -> bool

Source

pub fn is_enum(&self) -> bool

Source

pub fn is_extern(&self) -> bool

Source

pub fn is_fn(&self) -> bool

Source

pub fn is_for(&self) -> bool

Source

pub fn is_if(&self) -> bool

Source

pub fn is_impl(&self) -> bool

Source

pub fn is_in(&self) -> bool

Source

pub fn is_let(&self) -> bool

Source

pub fn is_loop(&self) -> bool

Source

pub fn is_match(&self) -> bool

Source

pub fn is_mod(&self) -> bool

Source

pub fn is_move(&self) -> bool

Source

pub fn is_mut(&self) -> bool

Source

pub fn is_pub(&self) -> bool

Source

pub fn is_ref(&self) -> bool

Source

pub fn is_return(&self) -> bool

Source

pub fn is_self_ident(&self) -> bool

Source

pub fn is_static(&self) -> bool

Source

pub fn is_struct(&self) -> bool

Source

pub fn is_trait(&self) -> bool

Source

pub fn is_type(&self) -> bool

Source

pub fn is_union(&self) -> bool

Source

pub fn is_unsafe(&self) -> bool

Source

pub fn is_use(&self) -> bool

Source

pub fn is_where(&self) -> bool

Source

pub fn is_while(&self) -> bool

Source

pub fn is_character(&self) -> bool

Source

pub fn is_string(&self) -> bool

Source

pub fn is_string_raw(&self) -> bool

Source

pub fn is_byte(&self) -> bool

Source

pub fn is_byte_string(&self) -> bool

Source

pub fn is_byte_string_raw(&self) -> bool

Source

pub fn is_ident(&self) -> bool

Source

pub fn is_number(&self) -> bool

Source

pub fn is_whitespace(&self) -> bool

Source

pub fn is_comment_line(&self) -> bool

Source

pub fn is_comment_block(&self) -> bool

Source

pub fn is_doc_comment_outer_line(&self) -> bool

Source

pub fn is_doc_comment_inner_line(&self) -> bool

Source

pub fn is_doc_comment_outer_block(&self) -> bool

Source

pub fn is_doc_comment_inner_block(&self) -> bool

Source

pub fn is_lifetime(&self) -> bool

Source

pub fn is_end_of_file(&self) -> bool

Source§

impl Token

Source

pub fn extent(&self) -> Extent

Trait Implementations§

Source§

impl Clone for Token

Source§

fn clone(&self) -> Token

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Token

Source§

impl Debug for Token

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Token

Source§

impl PartialEq for Token

Source§

fn eq(&self, other: &Token) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Token

Auto Trait Implementations§

§

impl Freeze for Token

§

impl RefUnwindSafe for Token

§

impl Send for Token

§

impl Sync for Token

§

impl Unpin for Token

§

impl UnsafeUnpin for Token

§

impl UnwindSafe for Token

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.