Skip to main content

Inherit

Type Alias Inherit 

Source
pub type Inherit<'a> = Box<dyn Fn(&Site<'_>, &Value, &Value) -> Result<Value, TabnasError> + 'a>;
Expand description

The bag a map’s subtree inherits, from the bag its parent’s subtree sees: called with the site, the map, and the parent’s bag, once per map on a path the fold needs, from the root down. It returns a map, or at least a container, as the canonical’s typeof === 'object' admits; anything else fails the fold with FOLD_INHERIT.

Aliased Type§

pub struct Inherit<'a>(/* private fields */);