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 Utf8Range
pub fn matches(&self, b: u8) -> bool
[src]
pub fn matches(&self, b: u8) -> bool
Returns true if and only if the given byte is in this range.
Trait Implementations
impl Clone for Utf8Range
[src]
impl Clone for Utf8Range
fn clone(&self) -> Utf8Range
[src]
fn clone(&self) -> Utf8Range
Returns 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 Utf8Range
impl PartialEq for Utf8Range
[src]
impl PartialEq for Utf8Range
fn eq(&self, other: &Utf8Range) -> bool
[src]
fn eq(&self, other: &Utf8Range) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Utf8Range
[src]
impl Eq for Utf8Range
impl Debug for Utf8Range
[src]
impl Debug for Utf8Range