Struct amethyst_assets::FormatValue
[−]
[src]
pub struct FormatValue<A: Asset> { pub data: A::Data, pub reload: Option<Box<Reload<A>>>, }
The Ok
return value of Format::import
for a given asset type A
.
Fields
data: A::Data
The format data.
reload: Option<Box<Reload<A>>>
An optional reload structure
Methods
impl<A: Asset> FormatValue<A>
[src]
pub fn data(data: A::Data) -> Self
[src]
Creates a FormatValue
from only the data (setting reload
to None
).
Trait Implementations
Auto Trait Implementations
impl<A> Send for FormatValue<A> where
<A as Asset>::Data: Send,
<A as Asset>::Data: Send,
impl<A> Sync for FormatValue<A> where
<A as Asset>::Data: Sync,
<A as Asset>::Data: Sync,