Struct ucglib::ast::tree::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]

[src]

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

[src]

Constructs a new Positioned with a value and a Position.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

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

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

1.3.0
[src]

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

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

[src]

Performs the conversion.

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

[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