Trait Operator

Source
pub trait Operator: for<'a> TryFrom<&'a TSXToken> {
    // Required methods
    fn to_str(&self) -> &'static str;
    fn precedence(&self) -> u8;
    fn associativity_direction(&self) -> AssociativityDirection;
    fn is_associative(&self) -> bool;

    // Provided method
    fn precedence_and_associativity_direction(
        &self,
    ) -> (u8, AssociativityDirection) { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§