pub enum Punctuation {
Show 34 variants
Ellipsis,
EnDash,
EmDash,
Ampersand,
Period,
Bang,
Question,
Colon,
Semicolon,
Quote(Quote),
Comma,
Hyphen,
OpenSquare,
CloseSquare,
OpenRound,
CloseRound,
OpenCurly,
CloseCurly,
Hash,
Apostrophe,
Percent,
ForwardSlash,
Backslash,
LessThan,
GreaterThan,
Equal,
Star,
Tilde,
At,
Caret,
Plus,
Currency(Currency),
Pipe,
Underscore,
}Variants§
Ellipsis
…
EnDash
–
EmDash
—
Ampersand
&
Period
.
Bang
!
Question
?
Colon
:
Semicolon
;
Quote(Quote)
"
Comma
,
Hyphen
-
OpenSquare
[
CloseSquare
]
OpenRound
(
CloseRound
)
OpenCurly
{
CloseCurly
}
Hash
"
Apostrophe
'
Percent
%
ForwardSlash
/
Backslash
\
LessThan
<
GreaterThan
>
Equal
=
Star
*
Tilde
~
At
@
Caret
^
Plus
+
Currency(Currency)
Pipe
|
Underscore
_
Implementations§
Source§impl Punctuation
impl Punctuation
Sourcepub const fn is_ellipsis(&self) -> bool
pub const fn is_ellipsis(&self) -> bool
Returns true if self is of variant Ellipsis.
Sourcepub const fn is_en_dash(&self) -> bool
pub const fn is_en_dash(&self) -> bool
Returns true if self is of variant EnDash.
Sourcepub const fn is_em_dash(&self) -> bool
pub const fn is_em_dash(&self) -> bool
Returns true if self is of variant EmDash.
Sourcepub const fn is_ampersand(&self) -> bool
pub const fn is_ampersand(&self) -> bool
Returns true if self is of variant Ampersand.
Sourcepub const fn is_question(&self) -> bool
pub const fn is_question(&self) -> bool
Returns true if self is of variant Question.
Sourcepub const fn is_semicolon(&self) -> bool
pub const fn is_semicolon(&self) -> bool
Returns true if self is of variant Semicolon.
Sourcepub fn as_quote(&self) -> Option<&Quote>
pub fn as_quote(&self) -> Option<&Quote>
Returns Some if self is a reference of variant Quote, and None otherwise.
Sourcepub fn as_mut_quote(&mut self) -> Option<&mut Quote>
pub fn as_mut_quote(&mut self) -> Option<&mut Quote>
Returns Some if self is a mutable reference of variant Quote, and None otherwise.
Sourcepub fn expect_quote(self) -> Quotewhere
Self: Debug,
pub fn expect_quote(self) -> Quotewhere
Self: Debug,
Sourcepub fn quote(self) -> Option<Quote>
pub fn quote(self) -> Option<Quote>
Returns Some if self is of variant Quote, and None otherwise.
Sourcepub const fn is_open_square(&self) -> bool
pub const fn is_open_square(&self) -> bool
Returns true if self is of variant OpenSquare.
Sourcepub const fn is_close_square(&self) -> bool
pub const fn is_close_square(&self) -> bool
Returns true if self is of variant CloseSquare.
Sourcepub const fn is_open_round(&self) -> bool
pub const fn is_open_round(&self) -> bool
Returns true if self is of variant OpenRound.
Sourcepub const fn is_close_round(&self) -> bool
pub const fn is_close_round(&self) -> bool
Returns true if self is of variant CloseRound.
Sourcepub const fn is_open_curly(&self) -> bool
pub const fn is_open_curly(&self) -> bool
Returns true if self is of variant OpenCurly.
Sourcepub const fn is_close_curly(&self) -> bool
pub const fn is_close_curly(&self) -> bool
Returns true if self is of variant CloseCurly.
Sourcepub const fn is_apostrophe(&self) -> bool
pub const fn is_apostrophe(&self) -> bool
Returns true if self is of variant Apostrophe.
Sourcepub const fn is_percent(&self) -> bool
pub const fn is_percent(&self) -> bool
Returns true if self is of variant Percent.
Sourcepub const fn is_forward_slash(&self) -> bool
pub const fn is_forward_slash(&self) -> bool
Returns true if self is of variant ForwardSlash.
Sourcepub const fn is_backslash(&self) -> bool
pub const fn is_backslash(&self) -> bool
Returns true if self is of variant Backslash.
Sourcepub const fn is_less_than(&self) -> bool
pub const fn is_less_than(&self) -> bool
Returns true if self is of variant LessThan.
Sourcepub const fn is_greater_than(&self) -> bool
pub const fn is_greater_than(&self) -> bool
Returns true if self is of variant GreaterThan.
Sourcepub const fn is_currency(&self) -> bool
pub const fn is_currency(&self) -> bool
Returns true if self is of variant Currency.
Sourcepub fn as_currency(&self) -> Option<&Currency>
pub fn as_currency(&self) -> Option<&Currency>
Returns Some if self is a reference of variant Currency, and None otherwise.
Sourcepub fn as_mut_currency(&mut self) -> Option<&mut Currency>
pub fn as_mut_currency(&mut self) -> Option<&mut Currency>
Returns Some if self is a mutable reference of variant Currency, and None otherwise.
Sourcepub fn expect_currency(self) -> Currencywhere
Self: Debug,
pub fn expect_currency(self) -> Currencywhere
Self: Debug,
Sourcepub fn currency(self) -> Option<Currency>
pub fn currency(self) -> Option<Currency>
Returns Some if self is of variant Currency, and None otherwise.
Sourcepub const fn is_underscore(&self) -> bool
pub const fn is_underscore(&self) -> bool
Returns true if self is of variant Underscore.
Source§impl Punctuation
impl Punctuation
pub fn from_char(c: char) -> Option<Punctuation>
Trait Implementations§
Source§impl Clone for Punctuation
impl Clone for Punctuation
Source§fn clone(&self) -> Punctuation
fn clone(&self) -> Punctuation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl<'de> Deserialize<'de> for Punctuation
impl<'de> Deserialize<'de> for Punctuation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for Punctuation
impl Hash for Punctuation
Source§impl PartialEq for Punctuation
impl PartialEq for Punctuation
Source§impl PartialOrd for Punctuation
impl PartialOrd for Punctuation
Source§impl Serialize for Punctuation
impl Serialize for Punctuation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more