Struct python_ast::slice::TkSlice [] [src]

pub struct TkSlice<'a>(pub &'a [Tk<'a>]);

Methods

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

Convert the slice back into a token assuming it is a slice of exactly len 1.

Convert the slice back into a token assuming it is a slice of exactly len 1.

Convert a token slice to a string

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

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

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

impl<'a> PartialEq for TkSlice<'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> InputLength for TkSlice<'a>
[src]

calculates the input length, as indicated by its name, and the name of the trait itself Read more

impl<'a> Slice<Range<usize>> for TkSlice<'a>
[src]

impl<'a> Slice<RangeTo<usize>> for TkSlice<'a>
[src]

impl<'a> Slice<RangeFrom<usize>> for TkSlice<'a>
[src]

impl<'a> Slice<RangeFull> for TkSlice<'a>
[src]

impl<'a, 'b> Compare<&'b [Id]> for TkSlice<'a>
[src]

compares self to another value for equality

compares self to another value for equality independently of the case. Read more

impl<'a> PartialOrd for TkSlice<'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> InputIter for TkSlice<'a>
[src]

returns an iterator over the elements and their byte offsets

returns an iterator over the elements

finds the byte position of the element

get the byte offset from the element's position in the stream