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
impl Copy for Utf8Range
[src]
impl Copy for Utf8Range
impl PartialEq for Utf8Range
[src]
[+]
impl PartialEq for Utf8Range
impl Eq for Utf8Range
[src]
impl Eq for Utf8Range
impl Debug for Utf8Range
[src]
[+]
impl Debug for Utf8Range