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