pub enum Asset {
Image(Arc<RasterBuf>),
Brush(OpaqueValue),
Features(OpaqueValue),
ScalarField(Arc<ScalarField>),
}Expand description
One asset fetched by an AssetLoader.
The shape is uniform across input kinds (images, brushes, feature
layers, …) so every source-style node consumes the host through the
same trait — like a shader sampling a typed uniform binding.
Features carries a type-erased payload; by convention the
concrete type is Arc<ezu_features::FeatureLayer>.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Asset
impl !RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnsafeUnpin for Asset
impl !UnwindSafe for Asset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more