Struct ucglib::ast::Positioned[][src]

pub struct Positioned<T> {
    pub pos: Position,
    pub val: T,
}

Adds position information to any type T.

Fields

Methods

impl<T> Positioned<T>
[src]

Constructs a new Positioned with a value, line, and column information.

Constructs a new Positioned with a value and a Position.

Trait Implementations

impl<T: Debug> Debug for Positioned<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Positioned<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Display> Display for Positioned<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Positioned<T>
[src]

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

This method tests for !=.

impl<T: Eq> Eq for Positioned<T>
[src]

impl<T: Ord> Ord for Positioned<T>
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: PartialOrd> PartialOrd for Positioned<T>
[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<T: Hash> Hash for Positioned<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> From<&'a Token> for Positioned<String>
[src]

Performs the conversion.

impl<'a> From<&'a Positioned<String>> for Positioned<String>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Positioned<T> where
    T: Send

impl<T> Sync for Positioned<T> where
    T: Sync