Struct python_ast::Tk [] [src]

pub struct Tk<'a> {
    id: Id,
    bytes: &'a [u8],
    tag: Tag,
}

Fields

Methods

impl<'a> Tk<'a>
[src]

Alternative constructor for const Tk definitions so there is not a need to make the struct fields public just to declare a const Tk in another module.

Trait Implementations

impl<'a> Debug for Tk<'a>
[src]

Formats the value using the given formatter.

impl<'a> Clone for Tk<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Tk<'a>
[src]

impl<'a> Eq for Tk<'a>
[src]

impl<'a> PartialEq for Tk<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialOrd for Tk<'a>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'a> Ord for Tk<'a>
[src]

This method returns an Ordering between self and other. Read more

impl<'a, 'b> FindToken<&'b [Id]> for Tk<'a>
[src]

impl<'a> Default for Tk<'a>
[src]

Returns the "default value" for a type. Read more

impl<'a> New<'a> for Tk<'a>
[src]

impl<'a> AsChar for &'a Tk<'a>
[src]

makes a char from self

tests that self is an alphabetic character Read more

tests that self is an alphabetic character or a decimal digit Read more

tests that self is a decimal digit

tests that self is an hex digit

tests that self is an octal digit