Struct Utf8Range

pub struct Utf8Range { pub start: u8, pub end: u8 }

A single inclusive range of UTF-8 bytes.

Fields

start: u8

Start of byte range (inclusive).

end: u8

End of byte range (inclusive).

Implementations

impl Utf8Range

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

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,

impl<T> Borrow<T> for Utf8Range where T: ?Sized,

impl<T> BorrowMut<T> for Utf8Range where T: ?Sized,

impl<T> CloneToUninit for Utf8Range where T: Clone,

impl<T> From<T> for Utf8Range

impl<T> ToOwned for Utf8Range where T: Clone,

impl<T, U> Into<U> for Utf8Range where U: From<T>,

impl<T, U> TryFrom<U> for Utf8Range where U: Into<T>,

impl<T, U> TryInto<U> for Utf8Range where U: TryFrom<T>,