Struct utf8_ranges::Utf8Range [] [src]

pub struct Utf8Range {
    pub start: u8,
    pub end: u8,
}

A single inclusive range of UTF-8 bytes.

Fields

start: u8

Start of byte range (inclusive).

end: u8

End of byte range (inclusive).

Methods

impl Utf8Range
[src]

fn matches(&self, b: u8) -> bool

Returns true if and only if the given byte is in this range.

Trait Implementations

impl Eq for Utf8Range
[src]

impl PartialEq for Utf8Range
[src]

fn eq(&self, __arg_0: &Utf8Range) -> bool

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

fn ne(&self, __arg_0: &Utf8Range) -> bool

This method tests for !=.

impl Copy for Utf8Range
[src]

impl Clone for Utf8Range
[src]

fn clone(&self) -> Utf8Range

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Utf8Range
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.