Struct components::engine::d2::asset::AssetEntry
source · [−]pub struct AssetEntry {
pub name: String,
pub url: String,
pub format: AssetFormat,
pub bytes: usize,
}
Expand description
Defines an asset that will be loaded.
Fields
name: String
The name of this asset.
url: String
The URL or file path this asset will be loaded from. Will be appended to Manifest.localBase
or Manifest.remoteBase
to get the actual URL to load from.
format: AssetFormat
The format this asset will be loaded as.
bytes: usize
The size of this asset in bytes, or 0 if unknown.
Implementations
sourceimpl AssetEntry
impl AssetEntry
pub fn new(
name: String,
url: String,
format: AssetFormat,
bytes: usize
) -> AssetEntry
Trait Implementations
sourceimpl Clone for AssetEntry
impl Clone for AssetEntry
sourcefn clone(&self) -> AssetEntry
fn clone(&self) -> AssetEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AssetEntry
impl Debug for AssetEntry
sourceimpl Default for AssetEntry
impl Default for AssetEntry
sourcefn default() -> AssetEntry
fn default() -> AssetEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AssetEntry
impl Send for AssetEntry
impl Sync for AssetEntry
impl Unpin for AssetEntry
impl UnwindSafe for AssetEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.