Skip to main content

AddSourceFn

Type Alias AddSourceFn 

Source
pub type AddSourceFn = fn(&mut Sheet, Box<dyn Any>) -> CellId;
Expand description

Adds a typed source cell (via [Sheet::add_source]) from a boxed value and returns its handle.

  • Precondition: the box contains the exact registered concrete type.
  • Complexity: follows [Sheet::add_source].

ยงExamples

See TypeEntry for creating a source through its selected registration.