Struct an_rope::metric::Grapheme []

pub struct Grapheme(pub usize);

A metric for calculating indices in Ropes based on Unicode graphemes.

Trait Implementations

impl Clone for Grapheme

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Grapheme

impl PartialOrd for Grapheme

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 Grapheme

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

impl PartialEq for Grapheme

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

This method tests for !=.

impl Eq for Grapheme

impl From<usize> for Grapheme

Performs the conversion.

impl Add<Grapheme> for Grapheme

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

impl Add<usize> for Grapheme

The resulting type after applying the + operator

The method for the + operator

impl Sub<Grapheme> for Grapheme

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

impl Sub<usize> for Grapheme

The resulting type after applying the - operator

The method for the - operator

impl Mul<Grapheme> for Grapheme

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the * operator

The method for the * operator

impl Mul<usize> for Grapheme

The resulting type after applying the * operator

The method for the * operator

impl Default for Grapheme
[src]

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

impl Monoid for Grapheme
[src]

impl Debug for Grapheme
[src]

Formats the value using the given formatter.

impl Metric for Grapheme
[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