Struct strcursor::grapheme::GcBuf [] [src]

pub struct GcBuf(_);

An owned, single Unicode grapheme cluster (akin to String).

See Gc for more details.

Methods

impl GcBuf
[src]

Create a new GcBuf from the given String.

This function does not check to ensure the provided string is a single, valid grapheme cluster.

Returns a borrowed grapheme cluster slice.

Methods from Deref<Target = Gc>

Returns the length of this grapheme cluster in bytes.

Does this grapheme cluster have additional marks applied to it?

This is true if the cluster is comprised of more than a single code point.

Converts this to a byte slice.

Converts this to a string slice.

Returns the "base" code point.

That is, this returns the first code point in the cluster.

Returns the "base" code point as a grapheme cluster.

This is equivalent to converting this GC into a string slice, then slicing off the bytes that make up the first code point.

Returns the combining marks as a string slice.

The result of this method may be empty, or of arbitrary length.

An iterator over the code points of this grapheme cluster.

An iterator over the code points of this grapheme cluster, and their associated byte offsets.

An iterator over the bytes of this grapheme cluster.

Returns an iterator over the code points in the lower case equivalent of this grapheme cluster.

Returns an iterator over the code points in the upper case equivalent of this grapheme cluster.

Trait Implementations

impl Clone for GcBuf
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for GcBuf
[src]

impl PartialEq for GcBuf
[src]

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

This method tests for !=.

impl Ord for GcBuf
[src]

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

impl PartialOrd for GcBuf
[src]

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 Hash for GcBuf
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl AsRef<Gc> for GcBuf
[src]

Performs the conversion.

impl AsRef<str> for GcBuf
[src]

Performs the conversion.

impl AsRef<[u8]> for GcBuf
[src]

Performs the conversion.

impl Borrow<Gc> for GcBuf
[src]

Immutably borrows from an owned value. Read more

impl Debug for GcBuf
[src]

Formats the value using the given formatter.

impl Default for GcBuf
[src]

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

impl Deref for GcBuf
[src]

The resulting type after dereferencing

The method called to dereference a value

impl Display for GcBuf
[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a Gc> for GcBuf
[src]

Performs the conversion.

impl From<char> for GcBuf
[src]

Performs the conversion.

impl Into<Box<str>> for GcBuf
[src]

Performs the conversion.

impl Into<String> for GcBuf
[src]

Performs the conversion.

impl Into<Vec<u8>> for GcBuf
[src]

Performs the conversion.

impl PartialEq<char> for GcBuf
[src]

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

This method tests for !=.

impl PartialEq<str> for GcBuf
[src]

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

This method tests for !=.

impl PartialEq<Gc> for GcBuf
[src]

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

This method tests for !=.

impl PartialEq<String> for GcBuf
[src]

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

This method tests for !=.

impl<'a> PartialEq<&'a str> for GcBuf
[src]

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

This method tests for !=.

impl<'a> PartialEq<&'a Gc> for GcBuf
[src]

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

This method tests for !=.

impl<'a> PartialEq<Cow<'a, Gc>> for GcBuf
[src]

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

This method tests for !=.

impl PartialOrd<char> for GcBuf
[src]

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 PartialOrd<str> for GcBuf
[src]

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 PartialOrd<Gc> for GcBuf
[src]

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 PartialOrd<String> for GcBuf
[src]

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<'a> PartialOrd<&'a str> for GcBuf
[src]

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<'a> PartialOrd<&'a Gc> for GcBuf
[src]

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<'a> PartialOrd<Cow<'a, Gc>> for GcBuf
[src]

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