pub trait AsEngineRef {
// Required method
fn as_engine_ref(&self) -> EngineRef<'_>;
// Provided method
fn maybe_as_store(&self) -> Option<StoreRef<'_>> { ... }
}
Expand description
Helper trait for a value that is convertible to a EngineRef
.
Required Methods§
Sourcefn as_engine_ref(&self) -> EngineRef<'_>
fn as_engine_ref(&self) -> EngineRef<'_>
Returns a EngineRef
pointing to the underlying context.
Provided Methods§
Sourcefn maybe_as_store(&self) -> Option<StoreRef<'_>>
fn maybe_as_store(&self) -> Option<StoreRef<'_>>
Returns an optional StoreRef
is the passed reference is a Store
.