Struct utf8_ranges::Utf8Range [−][src]
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]
impl Utf8Rangepub fn matches(&self, b: u8) -> bool[src]
pub fn matches(&self, b: u8) -> boolReturns true if and only if the given byte is in this range.
Trait Implementations
impl Clone for Utf8Range[src]
impl Clone for Utf8Rangefn clone(&self) -> Utf8Range[src]
fn clone(&self) -> Utf8RangeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Utf8Range[src]
impl Copy for Utf8Rangeimpl PartialEq for Utf8Range[src]
impl PartialEq for Utf8Rangefn eq(&self, other: &Utf8Range) -> bool[src]
fn eq(&self, other: &Utf8Range) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Utf8Range) -> bool[src]
fn ne(&self, other: &Utf8Range) -> boolThis method tests for !=.
impl Eq for Utf8Range[src]
impl Eq for Utf8Rangeimpl Debug for Utf8Range[src]
impl Debug for Utf8Range