Struct ClassBytesRange
pub struct ClassBytesRange { /* private fields */ }
A single range of characters represented by arbitrary bytes.
The range is closed. That is, the start and end of the range are included in the range.
Implementations
impl ClassBytesRange
fn new(start: u8, end: u8) -> ClassBytesRangeCreate a new byte range for a character class.
The returned range is always in a canonical form. That is, the range returned always satisfies the invariant that
start <= end.fn start(&self) -> u8Return the start of this range.
The start of a range is always less than or equal to the end of the range.
fn end(&self) -> u8Return the end of this range.
The end of a range is always greater than or equal to the start of the range.
fn len(&self) -> usizeReturns the number of bytes in this range.
Trait Implementations
impl Clone for ClassBytesRange
fn clone(&self) -> Self
impl Copy for ClassBytesRange
impl Debug for ClassBytesRange
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ClassBytesRange
fn default() -> Self
impl Eq for ClassBytesRange
impl Ord for ClassBytesRange
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for ClassBytesRange
fn eq(&self, other: &Self) -> bool
impl PartialOrd for ClassBytesRange
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for ClassBytesRange
Auto Trait Implementations
impl Freeze for ClassBytesRange
impl RefUnwindSafe for ClassBytesRange
impl Send for ClassBytesRange
impl Sync for ClassBytesRange
impl Unpin for ClassBytesRange
impl UnsafeUnpin for ClassBytesRange
impl UnwindSafe for ClassBytesRange
Blanket Implementations
impl<T> Any for ClassBytesRange
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ClassBytesRange
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ClassBytesRange
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ClassBytesRange
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ClassBytesRange
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ClassBytesRange
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ClassBytesRange
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 ClassBytesRange
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ClassBytesRange
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>