Skip to main content

ExpressionState

Trait ExpressionState 

Source
pub trait ExpressionState:
    Serialize
    + Clone
    + DeserializeOwned
    + Debug
    + Encode
    + for<'a> Decode<GammaLoopContextContainer<'a>>
    + Default {
    // Required methods
    fn forget_type(data: SymbolicExpression<Self>) -> PythonState;
    fn get_expression(
        num: &mut PythonState,
    ) -> Result<SymbolicExpression<Self>, NumeratorStateError>;

    // Provided methods
    fn new(expression: Atom) -> SymbolicExpression<Self> { ... }
    fn new_color(expression: Atom) -> SymbolicExpression<Self> { ... }
}

Required Methods§

Provided Methods§

Source

fn new(expression: Atom) -> SymbolicExpression<Self>

Source

fn new_color(expression: Atom) -> SymbolicExpression<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§