Skip to main content

PrefixOperator

Enum PrefixOperator 

Source
pub enum PrefixOperator {
Show 16 variants Hsh(_Hsh), Mul(_Mul), Add(_Add), Sub(_Sub), Lst(_Lst), LstLst(_LstLst), LstEql(_LstEql), LstEqlEql(_LstEqlEql), LstEqlEqlEql(_LstEqlEqlEql), Gst(_Gst), GstEql(_GstEql), Qsm(_Qsm), QsmQsm(_QsmQsm), PipSub(_PipSub), Tld(_Tld), Not(_Not),
}

Variants§

§

Hsh(_Hsh)

§

Mul(_Mul)

§

Add(_Add)

§

Sub(_Sub)

§

Lst(_Lst)

§

LstLst(_LstLst)

§

LstEql(_LstEql)

§

LstEqlEql(_LstEqlEql)

§

LstEqlEqlEql(_LstEqlEqlEql)

§

Gst(_Gst)

§

GstEql(_GstEql)

§

Qsm(_Qsm)

§

QsmQsm(_QsmQsm)

§

PipSub(_PipSub)

§

Tld(_Tld)

§

Not(_Not)

Implementations§

Source§

impl PrefixOperator

Source

pub fn from_spelling(spelling: &str, span: Span) -> Option<Self>

Source

pub fn from_token_tree(token: TokenTree) -> Option<Self>

Source

pub fn spelling(&self) -> &'static str

Trait Implementations§

Source§

impl Debug for PrefixOperator

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<_Add> for PrefixOperator

Source§

fn from(value: _Add) -> Self

Converts to this type from the input type.
Source§

impl From<_Gst> for PrefixOperator

Source§

fn from(value: _Gst) -> Self

Converts to this type from the input type.
Source§

impl From<_GstEql> for PrefixOperator

Source§

fn from(value: _GstEql) -> Self

Converts to this type from the input type.
Source§

impl From<_Hsh> for PrefixOperator

Source§

fn from(value: _Hsh) -> Self

Converts to this type from the input type.
Source§

impl From<_Lst> for PrefixOperator

Source§

fn from(value: _Lst) -> Self

Converts to this type from the input type.
Source§

impl From<_LstEql> for PrefixOperator

Source§

fn from(value: _LstEql) -> Self

Converts to this type from the input type.
Source§

impl From<_LstEqlEql> for PrefixOperator

Source§

fn from(value: _LstEqlEql) -> Self

Converts to this type from the input type.
Source§

impl From<_LstEqlEqlEql> for PrefixOperator

Source§

fn from(value: _LstEqlEqlEql) -> Self

Converts to this type from the input type.
Source§

impl From<_LstLst> for PrefixOperator

Source§

fn from(value: _LstLst) -> Self

Converts to this type from the input type.
Source§

impl From<_Mul> for PrefixOperator

Source§

fn from(value: _Mul) -> Self

Converts to this type from the input type.
Source§

impl From<_Not> for PrefixOperator

Source§

fn from(value: _Not) -> Self

Converts to this type from the input type.
Source§

impl From<_PipSub> for PrefixOperator

Source§

fn from(value: _PipSub) -> Self

Converts to this type from the input type.
Source§

impl From<_Qsm> for PrefixOperator

Source§

fn from(value: _Qsm) -> Self

Converts to this type from the input type.
Source§

impl From<_QsmQsm> for PrefixOperator

Source§

fn from(value: _QsmQsm) -> Self

Converts to this type from the input type.
Source§

impl From<_Sub> for PrefixOperator

Source§

fn from(value: _Sub) -> Self

Converts to this type from the input type.
Source§

impl From<_Tld> for PrefixOperator

Source§

fn from(value: _Tld) -> Self

Converts to this type from the input type.
Source§

impl PrettyTree for PrefixOperator

Source§

fn pretty_tree(&self) -> PrettyNode

Builds the presentation node for this syntax value.
Source§

impl<N> Reconstruct<N> for PrefixOperator
where N: ExternalCstNode,

Source§

impl Spanned for PrefixOperator

Source§

fn span(&self) -> Span

Source§

impl ToTokens for PrefixOperator

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.