Struct rustfmt_nightly::Range [−][src]
pub struct Range { /* fields omitted */ }A range that is inclusive of both ends.
Methods
impl Range[src]
impl RangeTrait Implementations
impl Clone for Range[src]
impl Clone for Rangefn clone(&self) -> Range[src]
fn clone(&self) -> RangeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Range[src]
impl Copy for Rangeimpl Debug for Range[src]
impl Debug for Rangefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for Range[src]
impl Eq for Rangeimpl PartialEq for Range[src]
impl PartialEq for Rangefn eq(&self, other: &Range) -> bool[src]
fn eq(&self, other: &Range) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Range) -> bool[src]
fn ne(&self, other: &Range) -> boolThis method tests for !=.
impl PartialOrd for Range[src]
impl PartialOrd for Rangefn partial_cmp(&self, other: &Range) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Range) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Range) -> bool[src]
fn lt(&self, other: &Range) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Range) -> bool[src]
fn le(&self, other: &Range) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Range) -> bool[src]
fn gt(&self, other: &Range) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Range) -> bool[src]
fn ge(&self, other: &Range) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Range[src]
impl Ord for Rangefn cmp(&self, other: &Range) -> Ordering[src]
fn cmp(&self, other: &Range) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more