pub struct AssetData {
pub id: String,
pub bytes: Arc<[u8]>,
pub kind: AssetKind,
}Expand description
Resolved asset bytes, ready for rendering or embedding. Cheap to clone (Arc).
Fields§
§id: StringStable identifier, e.g. "asset.logo".
bytes: Arc<[u8]>Raw asset file bytes.
kind: AssetKindThe asset kind (image, svg, font, …).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AssetData
impl RefUnwindSafe for AssetData
impl Send for AssetData
impl Sync for AssetData
impl Unpin for AssetData
impl UnsafeUnpin for AssetData
impl UnwindSafe for AssetData
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