Trait CtxAsset
pub trait CtxAsset {
// Required methods
fn ref_context(&self) -> &impl Context;
fn ref_content(&self) -> &String;
fn ref_asset(&self) -> (AssetType, &String);
}
Expand description
Trait for generic structs which contain a “content” and “context”
Required Methods§
fn ref_context(&self) -> &impl Context
fn ref_content(&self) -> &String
fn ref_asset(&self) -> (AssetType, &String)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.