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>
impl StructuralPartialEq for Utf8Range
Auto Trait Implementations
impl Freeze for Utf8Range
impl RefUnwindSafe for Utf8Range
impl Send for Utf8Range
impl Sync for Utf8Range
impl Unpin for Utf8Range
impl UnsafeUnpin for Utf8Range
impl UnwindSafe for Utf8Range
Blanket Implementations
impl<T> Any for Utf8Range
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Utf8Range
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Utf8Range
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Utf8Range
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Utf8Range
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Utf8Range
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Utf8Range
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Utf8Range
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Utf8Range
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>