Struct regex::internal::Char[][src]

pub struct Char(u32);

An inline representation of Option<char>.

This eliminates the need to do case analysis on Option<char> to determine ordinality with other characters.

(The Option<char> is not related to encoding. Instead, it is used in the matching engines to represent the beginning and ending boundaries of the search text.)

Methods

impl Char
[src]

Returns true iff the character is absent.

Returns the length of the character's UTF-8 encoding.

If the character is absent, then 0 is returned.

Returns true iff the character is a word character.

If the character is absent, then false is returned.

Returns true iff the byte is a word byte.

If the byte is absent, then false is returned.

Trait Implementations

impl Clone for Char
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Char
[src]

impl Hash for Char
[src]

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

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

impl PartialEq for Char
[src]

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

This method tests for !=.

impl Eq for Char
[src]

impl PartialOrd for Char
[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 Ord for Char
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Debug for Char
[src]

Formats the value using the given formatter. Read more

impl From<char> for Char
[src]

Performs the conversion.

impl From<Option<char>> for Char
[src]

Performs the conversion.

impl PartialEq<char> for Char
[src]

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

This method tests for !=.

impl PartialEq<Char> for char
[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 Char
[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<Char> for char
[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

Auto Trait Implementations

impl Send for Char

impl Sync for Char