pub enum Punct {
Show 23 variants
And(And),
Or(Or),
Not(Not),
Tilde(Tilde),
Plus(Plus),
Minus(Minus),
Underscore(Underscore),
Star(Star),
Slash(Slash),
Percent(Percent),
Caret(Caret),
Eq(Eq),
Lt(Lt),
Gt(Gt),
At(At),
Dot(Dot),
Comma(Comma),
Semi(Semi),
Colon(Colon),
Pound(Pound),
Dollar(Dollar),
Question(Question),
Quote(Quote),
}Variants§
And(And)
Or(Or)
Not(Not)
Tilde(Tilde)
Plus(Plus)
Minus(Minus)
Underscore(Underscore)
Star(Star)
Slash(Slash)
Percent(Percent)
Caret(Caret)
Eq(Eq)
Lt(Lt)
Gt(Gt)
At(At)
Dot(Dot)
Comma(Comma)
Semi(Semi)
Colon(Colon)
Pound(Pound)
Dollar(Dollar)
Question(Question)
Quote(Quote)
Implementations§
Source§impl Punct
impl Punct
pub fn as_str(&self) -> &'static str
pub fn span(&self) -> Span
pub fn set_span(&mut self, span: Span)
pub fn spacing(&self) -> Spacing
pub fn set_spacing(&mut self, spacing: Spacing)
pub fn to_token_tree(&self) -> TokenTree
pub fn into_token_tree(self) -> TokenTree
Trait Implementations§
impl Copy for Punct
impl Eq for Punct
Source§impl From<Underscore> for Punct
impl From<Underscore> for Punct
Source§fn from(value: Underscore) -> Self
fn from(value: Underscore) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Punct
Auto Trait Implementations§
impl !Send for Punct
impl !Sync for Punct
impl Freeze for Punct
impl RefUnwindSafe for Punct
impl Unpin for Punct
impl UnsafeUnpin for Punct
impl UnwindSafe for Punct
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