Skip to main content

Term

Trait Term 

Source
pub trait Term {
    type Context: TermContext;
    type Operation: Eq + Hash;
    type Arg<'a>: Copy
       where Self: 'a;

    // Required methods
    fn arity(&self) -> usize;
    fn arg(&self, idx: usize) -> Option<Self::Arg<'_>>;
}

Required Associated Types§

Source

type Context: TermContext

Source

type Operation: Eq + Hash

Source

type Arg<'a>: Copy where Self: 'a

Required Methods§

Source

fn arity(&self) -> usize

Source

fn arg(&self, idx: usize) -> Option<Self::Arg<'_>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§