Skip to main content

Holder

Trait Holder 

Source
pub trait Holder {
    // Required methods
    fn scene(&self) -> &Scene;
    fn apply(&mut self, edits: &Edits) -> Result<Applied, String>;
}
Expand description

Where a design’s one scene is held: what resolving it again reads the scene from, and brings it across by — by edits applied to it there, once, and to whatever is kept beside it, like a drawing.

Required Methods§

Source

fn scene(&self) -> &Scene

The scene as it is now.

Source

fn apply(&mut self, edits: &Edits) -> Result<Applied, String>

Applies edits to the scene, or says why they don’t apply, leaving it as it was.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§