Struct gluon_base::pos::Span [] [src]

pub struct Span<Pos> {
    pub start: Pos,
    pub end: Pos,
    pub expansion_id: ExpansionId,
}

A span between two locations in a source file

Fields

Methods

impl<Pos: Ord> Span<Pos>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<Pos: Copy> Copy for Span<Pos>
[src]

impl<Pos: Clone> Clone for Span<Pos>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Pos: Default> Default for Span<Pos>
[src]

[src]

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

impl<Pos: Eq> Eq for Span<Pos>
[src]

impl<Pos: Debug> Debug for Span<Pos>
[src]

[src]

Formats the value using the given formatter.

impl<Pos> PartialEq for Span<Pos> where
    Pos: PartialEq
[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<Pos> PartialOrd for Span<Pos> where
    Pos: PartialOrd
[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<Pos> Ord for Span<Pos> where
    Pos: Ord
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more