Struct an_rope::metric::Line []

pub struct Line(pub usize);

A metric for calculating indices in Ropes based on line numbering.

Trait Implementations

impl Clone for Line

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Line

impl PartialOrd for Line

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 Ord for Line

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

impl PartialEq for Line

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

This method tests for !=.

impl Eq for Line

impl From<usize> for Line

Performs the conversion.

impl Add<Line> for Line

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<&'a Line> for &'a Line

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<&'a Line> for Line

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<Line> for &'a Line

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<usize> for &'a Line

The resulting type after applying the + operator

The method for the + operator

impl Add<usize> for Line

The resulting type after applying the + operator

The method for the + operator

impl Sub<Line> for Line

The resulting type after applying the - operator

The method for the - operator

impl<'a> Sub<&'a Line> for &'a Line

The resulting type after applying the - operator

The method for the - operator

impl<'a> Sub<&'a Line> for Line

The resulting type after applying the - operator

The method for the - operator

impl<'a> Sub<Line> for &'a Line

The resulting type after applying the - operator

The method for the - operator

impl<'a> Sub<usize> for &'a Line

The resulting type after applying the - operator

The method for the - operator

impl Sub<usize> for Line

The resulting type after applying the - operator

The method for the - operator

impl Mul<Line> for Line

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<&'a Line> for &'a Line

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<&'a Line> for Line

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<Line> for &'a Line

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<usize> for &'a Line

The resulting type after applying the * operator

The method for the * operator

impl Mul<usize> for Line

The resulting type after applying the * operator

The method for the * operator

impl Default for Line
[src]

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

impl Monoid for Line
[src]

impl Debug for Line
[src]

Formats the value using the given formatter.

impl Metric for Line
[src]

Returns whether text may be split into new leaf nodes using this metric.

Returns true if index i in node is a boundary along this Metric

Returns the byte index of the next element of this metric in Node

Returns the byte index of the previous element of this metric in Node