Struct rls_span::Span [] [src]

pub struct Span<I: Indexed> {
    pub file: PathBuf,
    pub range: Range<I>,
}

Fields

Methods

impl<I: Indexed> Span<I>
[src]

impl Span<OneIndexed>
[src]

impl Span<ZeroIndexed>
[src]

Trait Implementations

impl<I: Debug + Indexed> Debug for Span<I>
[src]

Formats the value using the given formatter.

impl<I: Hash + Indexed> Hash for Span<I>
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<I: PartialEq + Indexed> PartialEq for Span<I>
[src]

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

This method tests for !=.

impl<I: Eq + Indexed> Eq for Span<I>
[src]

impl<I: PartialOrd + Indexed> PartialOrd for Span<I>
[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<I: Ord + Indexed> Ord for Span<I>
[src]

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

impl<I: Indexed> Clone for Span<I>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more