pub struct Punctuation;Expand description
Checks whether the given character is ASCII punctuation.
Trait Implementations§
Source§impl Clone for Punctuation
impl Clone for Punctuation
Source§fn clone(&self) -> Punctuation
fn clone(&self) -> Punctuation
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 Punctuation
impl Debug for Punctuation
Source§impl Default for Punctuation
impl Default for Punctuation
Source§fn default() -> Punctuation
fn default() -> Punctuation
Returns the “default value” for a type. Read more
Source§impl Hash for Punctuation
impl Hash for Punctuation
Source§impl Ord for Punctuation
impl Ord for Punctuation
Source§fn cmp(&self, other: &Punctuation) -> Ordering
fn cmp(&self, other: &Punctuation) -> 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 Punctuation
impl PartialEq for Punctuation
Source§impl PartialOrd for Punctuation
impl PartialOrd for Punctuation
Source§impl Predicate<char> for Punctuation
impl Predicate<char> for Punctuation
Source§type Error = PunctuationError
type Error = PunctuationError
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 Punctuation
impl Eq for Punctuation
impl StructuralPartialEq for Punctuation
Auto Trait Implementations§
impl Freeze for Punctuation
impl RefUnwindSafe for Punctuation
impl Send for Punctuation
impl Sync for Punctuation
impl Unpin for Punctuation
impl UnwindSafe for Punctuation
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