Struct an_rope::metric::Line
[−]
pub struct Line(pub usize);
A metric for calculating indices in Rope
s based on line numbering.
Trait Implementations
impl Clone for Line
fn clone(&self) -> Line
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
impl Copy for Line
impl PartialOrd for Line
fn partial_cmp(&self, __arg_0: &Line) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Line) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Line) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Line) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Line) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Line
fn cmp(&self, __arg_0: &Line) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for Line
fn eq(&self, __arg_0: &Line) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Line) -> bool
This method tests for !=
.
impl Eq for Line
impl From<usize> for Line
impl Add<Line> for Line
type Output = Line
The resulting type after applying the +
operator
fn add(self, rhs: Self) -> Line
The method for the +
operator
impl<'a> Add<&'a Line> for &'a Line
type Output = Line
The resulting type after applying the +
operator
fn add(self, rhs: Self) -> Line
The method for the +
operator
impl<'a> Add<&'a Line> for Line
type Output = Line
The resulting type after applying the +
operator
fn add(self, rhs: &'a Line) -> Line
The method for the +
operator
impl<'a> Add<Line> for &'a Line
type Output = Line
The resulting type after applying the +
operator
fn add(self, rhs: Line) -> Line
The method for the +
operator
impl<'a> Add<usize> for &'a Line
type Output = Line
The resulting type after applying the +
operator
fn add(self, rhs: usize) -> Line
The method for the +
operator
impl Add<usize> for Line
type Output = Line
The resulting type after applying the +
operator
fn add(self, rhs: usize) -> Line
The method for the +
operator
impl Sub<Line> for Line
type Output = Line
The resulting type after applying the -
operator
fn sub(self, rhs: Self) -> Line
The method for the -
operator
impl<'a> Sub<&'a Line> for &'a Line
type Output = Line
The resulting type after applying the -
operator
fn sub(self, rhs: Self) -> Line
The method for the -
operator
impl<'a> Sub<&'a Line> for Line
type Output = Line
The resulting type after applying the -
operator
fn sub(self, rhs: &'a Line) -> Line
The method for the -
operator
impl<'a> Sub<Line> for &'a Line
type Output = Line
The resulting type after applying the -
operator
fn sub(self, rhs: Line) -> Line
The method for the -
operator
impl<'a> Sub<usize> for &'a Line
type Output = Line
The resulting type after applying the -
operator
fn sub(self, rhs: usize) -> Line
The method for the -
operator
impl Sub<usize> for Line
type Output = Line
The resulting type after applying the -
operator
fn sub(self, rhs: usize) -> Line
The method for the -
operator
impl Mul<Line> for Line
type Output = Line
The resulting type after applying the *
operator
fn mul(self, rhs: Self) -> Line
The method for the *
operator
impl<'a> Mul<&'a Line> for &'a Line
type Output = Line
The resulting type after applying the *
operator
fn mul(self, rhs: Self) -> Line
The method for the *
operator
impl<'a> Mul<&'a Line> for Line
type Output = Line
The resulting type after applying the *
operator
fn mul(self, rhs: &'a Line) -> Line
The method for the *
operator
impl<'a> Mul<Line> for &'a Line
type Output = Line
The resulting type after applying the *
operator
fn mul(self, rhs: Line) -> Line
The method for the *
operator
impl<'a> Mul<usize> for &'a Line
type Output = Line
The resulting type after applying the *
operator
fn mul(self, rhs: usize) -> Line
The method for the *
operator
impl Mul<usize> for Line
type Output = Line
The resulting type after applying the *
operator
fn mul(self, rhs: usize) -> Line
The method for the *
operator
impl Default for Line
[src]
impl Monoid for Line
[src]
fn accumulate<F>(xs: F) -> Self where
F: Iterator<Item = Self>,
Self: Sized,
F: Iterator<Item = Self>,
Self: Sized,
impl Debug for Line
[src]
impl Metric for Line
[src]
fn is_splittable() -> bool
Returns whether text may be split into new leaf nodes using this metric.
fn is_boundary<M: Measured<Self>>(_node: &M, _i: usize) -> bool
Returns true if index i
in node
is a boundary along this Metric
fn next<M: Measured<Self>>(self, node: &M) -> Option<usize>
Returns the byte index of the next element of this metric in Node
fn back<M: Measured<Self>>(self, node: &M) -> Option<usize>
Returns the byte index of the previous element of this metric in Node