Enum syn::UnOp
[−]
[src]
A unary operator: *
, !
, -
.
This type is available if Syn is built with the "derive"
or "full"
feature.
Variants
Deref(Star)
The *
operator for dereferencing
Not(Bang)
The !
operator for logical inversion
Neg(Sub)
The -
operator for negation
Trait Implementations
impl Synom for UnOp
[src]
impl Synom for UnOp
fn parse(i: Cursor) -> PResult<Self>
[src]
fn parse(i: Cursor) -> PResult<Self>
fn description() -> Option<&'static str>
[src]
fn description() -> Option<&'static str>
A short name of the type being parsed. Read more
impl ToTokens for UnOp
[src]
impl ToTokens for UnOp
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
impl Copy for UnOp
[src]
impl Copy for UnOp
impl Clone for UnOp
[src]
impl Clone for UnOp