#[repr(u8)]pub enum Whitespace {
None = 0,
Space = 1,
NoBreakSpace = 2,
Tab = 3,
Newline = 4,
Other = 5,
}
Expand description
Whitespace content of a cluster.
Variants§
None = 0
Not a space.
Space = 1
Standard space.
NoBreakSpace = 2
Non-breaking space (U+00A0).
Tab = 3
Horizontal tab.
Newline = 4
Newline (CR, LF, or CRLF).
Other = 5
Other space.
Implementations§
source§impl Whitespace
impl Whitespace
sourcepub fn is_space_or_nbsp(self) -> bool
pub fn is_space_or_nbsp(self) -> bool
Returns true for space or no break space.
Trait Implementations§
source§impl Clone for Whitespace
impl Clone for Whitespace
source§fn clone(&self) -> Whitespace
fn clone(&self) -> Whitespace
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Whitespace
impl Debug for Whitespace
source§impl Ord for Whitespace
impl Ord for Whitespace
source§fn cmp(&self, other: &Whitespace) -> Ordering
fn cmp(&self, other: &Whitespace) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Whitespace
impl PartialEq for Whitespace
source§impl PartialOrd for Whitespace
impl PartialOrd for Whitespace
impl Copy for Whitespace
impl Eq for Whitespace
impl StructuralPartialEq for Whitespace
Auto Trait Implementations§
impl Freeze for Whitespace
impl RefUnwindSafe for Whitespace
impl Send for Whitespace
impl Sync for Whitespace
impl Unpin for Whitespace
impl UnwindSafe for Whitespace
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)