Struct an_rope::metric::Grapheme
[−]
pub struct Grapheme(pub usize);
A metric for calculating indices in Rope
s based on Unicode graphemes.
Trait Implementations
impl Clone for Grapheme
fn clone(&self) -> Grapheme
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 Grapheme
impl PartialOrd for Grapheme
fn partial_cmp(&self, __arg_0: &Grapheme) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Grapheme) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Grapheme) -> 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: &Grapheme) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Grapheme) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Grapheme
fn cmp(&self, __arg_0: &Grapheme) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for Grapheme
fn eq(&self, __arg_0: &Grapheme) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Grapheme) -> bool
This method tests for !=
.
impl Eq for Grapheme
impl From<usize> for Grapheme
impl Add<Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the +
operator
fn add(self, rhs: Self) -> Grapheme
The method for the +
operator
impl<'a> Add<&'a Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the +
operator
fn add(self, rhs: Self) -> Grapheme
The method for the +
operator
impl<'a> Add<&'a Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the +
operator
fn add(self, rhs: &'a Grapheme) -> Grapheme
The method for the +
operator
impl<'a> Add<Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the +
operator
fn add(self, rhs: Grapheme) -> Grapheme
The method for the +
operator
impl<'a> Add<usize> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the +
operator
fn add(self, rhs: usize) -> Grapheme
The method for the +
operator
impl Add<usize> for Grapheme
type Output = Grapheme
The resulting type after applying the +
operator
fn add(self, rhs: usize) -> Grapheme
The method for the +
operator
impl Sub<Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the -
operator
fn sub(self, rhs: Self) -> Grapheme
The method for the -
operator
impl<'a> Sub<&'a Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the -
operator
fn sub(self, rhs: Self) -> Grapheme
The method for the -
operator
impl<'a> Sub<&'a Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the -
operator
fn sub(self, rhs: &'a Grapheme) -> Grapheme
The method for the -
operator
impl<'a> Sub<Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the -
operator
fn sub(self, rhs: Grapheme) -> Grapheme
The method for the -
operator
impl<'a> Sub<usize> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the -
operator
fn sub(self, rhs: usize) -> Grapheme
The method for the -
operator
impl Sub<usize> for Grapheme
type Output = Grapheme
The resulting type after applying the -
operator
fn sub(self, rhs: usize) -> Grapheme
The method for the -
operator
impl Mul<Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the *
operator
fn mul(self, rhs: Self) -> Grapheme
The method for the *
operator
impl<'a> Mul<&'a Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the *
operator
fn mul(self, rhs: Self) -> Grapheme
The method for the *
operator
impl<'a> Mul<&'a Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the *
operator
fn mul(self, rhs: &'a Grapheme) -> Grapheme
The method for the *
operator
impl<'a> Mul<Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the *
operator
fn mul(self, rhs: Grapheme) -> Grapheme
The method for the *
operator
impl<'a> Mul<usize> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the *
operator
fn mul(self, rhs: usize) -> Grapheme
The method for the *
operator
impl Mul<usize> for Grapheme
type Output = Grapheme
The resulting type after applying the *
operator
fn mul(self, rhs: usize) -> Grapheme
The method for the *
operator
impl Default for Grapheme
[src]
impl Monoid for Grapheme
[src]
fn accumulate<F>(xs: F) -> Self where
F: Iterator<Item = Self>,
Self: Sized,
F: Iterator<Item = Self>,
Self: Sized,
impl Debug for Grapheme
[src]
impl Metric for Grapheme
[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