Struct scribe::buffer::Range [] [src]

pub struct Range {
    pub start: Position,
    pub end: Position,
}

A two-position type, representing a span of characters.

Fields

start: Position end: Position

Methods

impl Range
[src]

fn is_valid(&self) -> bool

Checks if the range is non-reversed and non-empty.

Trait Implementations

impl PartialEq for Range
[src]

fn eq(&self, __arg_0: &Range) -> bool

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

fn ne(&self, __arg_0: &Range) -> bool

This method tests for !=.

impl Debug for Range
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Range
[src]

fn clone(&self) -> Range

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more