Struct an_rope::metric::Line [] [src]

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

1.0.0
[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. 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.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

impl Add<usize> for Line

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Line> for Line

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<usize> for Line

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<Line> for Line

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<usize> for Line

The resulting type after applying the * operator.

Performs the * operation.

impl Default for Line
[src]

[src]

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

impl Monoid for Line
[src]

[src]

impl Debug for Line
[src]

[src]

Formats the value using the given formatter.

impl Metric for Line
[src]

[src]

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

[src]

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

[src]

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

[src]

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