AugDictExtra

Trait AugDictExtra 

Source
pub trait AugDictExtra: Default {
    // Required method
    fn comp_add(
        left: &mut CellSlice<'_>,
        right: &mut CellSlice<'_>,
        b: &mut CellBuilder,
        cx: &mut dyn CellContext,
    ) -> Result<(), Error>;
}
Expand description

A trait for values that can be used as augmented values in an augmented dictionary.

Required Methods§

Source

fn comp_add( left: &mut CellSlice<'_>, right: &mut CellSlice<'_>, b: &mut CellBuilder, cx: &mut dyn CellContext, ) -> Result<(), Error>

Merges two augmented values.

§Parameters
  • left - The left branch (should start with extra).
  • right - The right branch (should start with extra).
  • b - The builder to store the result (only extra).
  • cx - The cell context.

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§