Skip to main content

Resolver

Trait Resolver 

Source
pub trait Resolver {
    // Required method
    fn resolve(&mut self, r: &Ref) -> Value;
}
Expand description

Resolves a Ref to the Value it points at.

Implementors own all workbook semantics: missing sheets, undefined names, empty cells, and range materialization. See the module docs for the expected error mapping (#REF! for missing sheets, #NAME? for undefined names). The evaluator only calls this for references that are not shadowed by a local binding such as a LAMBDA parameter.

Required Methods§

Source

fn resolve(&mut self, r: &Ref) -> Value

Return the value of r. The receiver is &mut self so resolvers may memoize, count reads, or lazily materialize ranges.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§