Struct Utf8Range
pub struct Utf8Range { pub start: u8, pub end: u8 }
A single inclusive range of UTF-8 bytes.
Fields
start: u8Start of byte range (inclusive).
end: u8End of byte range (inclusive).
Implementations
impl Utf8Range
fn matches(&self, b: u8) -> boolReturns true if and only if the given byte is in this range.
Trait Implementations
impl Clone for Utf8Range
fn clone(&self) -> Self
impl Copy for Utf8Range
impl Debug for Utf8Range
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Utf8Range
impl Ord for Utf8Range
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for Utf8Range
fn eq(&self, other: &Self) -> bool
impl PartialOrd for Utf8Range
fn partial_cmp(&self, other: &Self) -> Option<Ordering>