pub struct Whitespace;Expand description
Checks whether the given character is whitespace.
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 Default for Whitespace
impl Default for Whitespace
Source§fn default() -> Whitespace
fn default() -> Whitespace
Returns the “default value” for a type. Read more
Source§impl Hash for Whitespace
impl Hash 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
Source§impl Predicate<char> for Whitespace
impl Predicate<char> for Whitespace
Source§type Error = WhitespaceError
type Error = WhitespaceError
The associated error type which is used to represent checks.
Source§fn check(value: &char) -> Result<(), Self::Error>
fn check(value: &char) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreSource§fn expect(formatter: &mut Formatter<'_>) -> Result
fn expect(formatter: &mut Formatter<'_>) -> Result
Formats the expectation of the predicate. Read more
Source§fn expect_code(formatter: &mut Formatter<'_>) -> Result
fn expect_code(formatter: &mut Formatter<'_>) -> Result
Formats the expectation code of the predicate. Read more
Source§fn is_satisfied(value: &T) -> bool
fn is_satisfied(value: &T) -> bool
Checks whether the given value satisfies the predicate. Read more
Source§fn expected_code() -> ExpectedCode<T, Self>
fn expected_code() -> ExpectedCode<T, Self>
Returns the expectation code of the predicate.
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