Enum peepmatic_runtime::unquote::UnquoteOperator [−][src]
#[repr(u32)]
pub enum UnquoteOperator {
Band,
Bor,
Bxor,
Iadd,
Imul,
Isub,
Log2,
Neg,
}
Expand description
Compile-time unquote operators.
These are used in the right-hand side to perform compile-time evaluation of constants matched on the left-hand side.
Variants
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
fn result_type<'a, C>(
&self,
span: C::Span,
typing_context: &mut C
) -> C::TypeVariable where
C: TypingContext<'a>,
fn result_type<'a, C>(
&self,
span: C::Span,
typing_context: &mut C
) -> C::TypeVariable where
C: TypingContext<'a>,
Get the result type of this operator.
Get the number of immediates this operator has.
fn immediate_types<'a, C>(
&self,
span: C::Span,
typing_context: &mut C,
types: &mut impl Extend<C::TypeVariable>
) where
C: TypingContext<'a>,
fn immediate_types<'a, C>(
&self,
span: C::Span,
typing_context: &mut C,
types: &mut impl Extend<C::TypeVariable>
) where
C: TypingContext<'a>,
Get the types of this operator’s immediates.
Get the number of parameters this operator has.
fn parameter_types<'a, C>(
&self,
span: C::Span,
typing_context: &mut C,
types: &mut impl Extend<C::TypeVariable>
) where
C: TypingContext<'a>,
fn parameter_types<'a, C>(
&self,
span: C::Span,
typing_context: &mut C,
types: &mut impl Extend<C::TypeVariable>
) where
C: TypingContext<'a>,
Get the types of this operator’s parameters.
Auto Trait Implementations
impl RefUnwindSafe for UnquoteOperator
impl Send for UnquoteOperator
impl Sync for UnquoteOperator
impl Unpin for UnquoteOperator
impl UnwindSafe for UnquoteOperator
Blanket Implementations
Mutably borrows from an owned value. Read more