Struct an_rope::metric::Grapheme
[−]
[src]
pub struct Grapheme(pub usize);
A metric for calculating indices in Ropes 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[src]
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
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. 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
Performs the + operation.
impl<'a> Add<&'a Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Grapheme
Performs the + operation.
impl<'a> Add<&'a Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the + operator.
fn add(self, rhs: &'a Grapheme) -> Grapheme
Performs the + operation.
impl<'a> Add<Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the + operator.
fn add(self, rhs: Grapheme) -> Grapheme
Performs the + operation.
impl<'a> Add<usize> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the + operator.
fn add(self, rhs: usize) -> Grapheme
Performs the + operation.
impl Add<usize> for Grapheme
type Output = Grapheme
The resulting type after applying the + operator.
fn add(self, rhs: usize) -> Grapheme
Performs the + operation.
impl Sub<Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Grapheme
Performs the - operation.
impl<'a> Sub<&'a Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Grapheme
Performs the - operation.
impl<'a> Sub<&'a Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the - operator.
fn sub(self, rhs: &'a Grapheme) -> Grapheme
Performs the - operation.
impl<'a> Sub<Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the - operator.
fn sub(self, rhs: Grapheme) -> Grapheme
Performs the - operation.
impl<'a> Sub<usize> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the - operator.
fn sub(self, rhs: usize) -> Grapheme
Performs the - operation.
impl Sub<usize> for Grapheme
type Output = Grapheme
The resulting type after applying the - operator.
fn sub(self, rhs: usize) -> Grapheme
Performs the - operation.
impl Mul<Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the * operator.
fn mul(self, rhs: Self) -> Grapheme
Performs the * operation.
impl<'a> Mul<&'a Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the * operator.
fn mul(self, rhs: Self) -> Grapheme
Performs the * operation.
impl<'a> Mul<&'a Grapheme> for Grapheme
type Output = Grapheme
The resulting type after applying the * operator.
fn mul(self, rhs: &'a Grapheme) -> Grapheme
Performs the * operation.
impl<'a> Mul<Grapheme> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the * operator.
fn mul(self, rhs: Grapheme) -> Grapheme
Performs the * operation.
impl<'a> Mul<usize> for &'a Grapheme
type Output = Grapheme
The resulting type after applying the * operator.
fn mul(self, rhs: usize) -> Grapheme
Performs the * operation.
impl Mul<usize> for Grapheme
type Output = Grapheme
The resulting type after applying the * operator.
fn mul(self, rhs: usize) -> Grapheme
Performs the * operation.
impl Default for Grapheme[src]
impl Monoid for Grapheme[src]
fn accumulate<F>(xs: F) -> Self where
F: Iterator<Item = Self>,
Self: Sized, [src]
F: Iterator<Item = Self>,
Self: Sized,
impl Debug for Grapheme[src]
impl Metric for Grapheme[src]
fn is_splittable() -> bool[src]
Returns whether text may be split into new leaf nodes using this metric.
fn is_boundary<M: Measured<Self>>(_node: &M, _i: usize) -> bool[src]
Returns true if index i in node is a boundary along this Metric
fn next<M: Measured<Self>>(self, node: &M) -> Option<usize>[src]
Returns the byte index of the next element of this metric in Node
fn back<M: Measured<Self>>(self, node: &M) -> Option<usize>[src]
Returns the byte index of the previous element of this metric in Node