Trait puffin::protocol::EvaluatedTerm

source ·
pub trait EvaluatedTerm<PT: ProtocolTypes>:
    CodecP
    + Extractable<PT>
    + Debug
    + AsAny
    + 'static
where Self: 'static,
{ // Required method fn boxed(&self) -> Box<dyn EvaluatedTerm<PT>>; // Provided methods fn type_id(&self) -> TypeId { ... } fn type_name(&self) -> &'static str { ... } }
Expand description

EvaluatedTerm: have both Codec and a way to extract knowledge out of a Message/OpaqueMessage or any type that might be used in a precomputation

Required Methods§

source

fn boxed(&self) -> Box<dyn EvaluatedTerm<PT>>

Provided Methods§

source

fn type_id(&self) -> TypeId

source

fn type_name(&self) -> &'static str

Implementors§

source§

impl<T, PT: ProtocolTypes> EvaluatedTerm<PT> for T
where T: CodecP + Extractable<PT> + 'static + Clone,