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

Returns a copy of the value. Read more

1.0.0
[src]

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

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 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.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

impl Add<usize> for Grapheme

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Grapheme> for Grapheme

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<usize> for Grapheme

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<Grapheme> for Grapheme

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<usize> for Grapheme

The resulting type after applying the * operator.

Performs the * operation.

impl Default for Grapheme
[src]

[src]

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

impl Monoid for Grapheme
[src]

[src]

impl Debug for Grapheme
[src]

[src]

Formats the value using the given formatter.

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