pub trait Asset:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn content(self: Vc<Self>) -> Vc<AssetContent>
where Self: Sized;
// Provided method
fn versioned_content(self: Vc<Self>) -> Vc<Box<dyn VersionedContent>>
where Self: Sized { ... }
}
Expand description
An asset. It also forms a graph when following [Asset::references].
Required Methods§
Provided Methods§
Sourcefn versioned_content(self: Vc<Self>) -> Vc<Box<dyn VersionedContent>>where
Self: Sized,
fn versioned_content(self: Vc<Self>) -> Vc<Box<dyn VersionedContent>>where
Self: Sized,
The content of the Asset alongside its version.