petri_artifacts_core

Trait AsArtifactHandle

Source
pub trait AsArtifactHandle {
    // Required method
    fn erase(&self) -> ErasedArtifactHandle;
}
Expand description

Helper trait to allow uniform handling of both typed and untyped artifact handles in various contexts.

Required Methods§

Source

fn erase(&self) -> ErasedArtifactHandle

Return a type-erased handle to the given artifact.

Implementors§