pub struct AssetEntry { /* private fields */ }Expand description
An entry in the asset cache containing the loaded data and its state.
Implementations§
Source§impl AssetEntry
impl AssetEntry
pub fn get_asset_type(&self) -> AssetType
pub fn get_mut_asset_type(&mut self) -> &mut AssetType
pub fn set_asset_type(&mut self, val: AssetType) -> &mut Self
pub fn get_state(&self) -> AssetState
pub fn get_mut_state(&mut self) -> &mut AssetState
pub fn set_state(&mut self, val: AssetState) -> &mut Self
pub fn get_image(&self) -> Option<HtmlImageElement>
pub fn try_get_image(&self) -> Option<HtmlImageElement>
pub fn get_mut_image(&mut self) -> &mut Option<HtmlImageElement>
pub fn set_image(&mut self, val: Option<HtmlImageElement>) -> &mut Self
pub fn get_url(&self) -> &String
pub fn get_mut_url(&mut self) -> &mut String
pub fn set_url(&mut self, val: String) -> &mut Self
Source§impl AssetEntry
impl AssetEntry
pub fn new( asset_type: AssetType, state: AssetState, image: Option<HtmlImageElement>, url: String, ) -> Self
Trait Implementations§
Source§impl Clone for AssetEntry
impl Clone for AssetEntry
Source§fn clone(&self) -> AssetEntry
fn clone(&self) -> AssetEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetEntry
impl Debug for AssetEntry
Source§impl PartialEq for AssetEntry
impl PartialEq for AssetEntry
Source§fn eq(&self, other: &AssetEntry) -> bool
fn eq(&self, other: &AssetEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssetEntry
Auto Trait Implementations§
impl Freeze for AssetEntry
impl RefUnwindSafe for AssetEntry
impl Send for AssetEntry
impl Sync for AssetEntry
impl Unpin for AssetEntry
impl UnsafeUnpin for AssetEntry
impl UnwindSafe for AssetEntry
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