Struct amethyst_assets::RonFormat [−][src]
pub struct RonFormat;
Format for loading from Ron files.
Trait Implementations
impl Default for RonFormat
[src]
impl Default for RonFormat
impl Clone for RonFormat
[src]
impl Clone for RonFormat
fn clone(&self) -> RonFormat
[src]
fn clone(&self) -> RonFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RonFormat
[src]
impl Debug for RonFormat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> SimpleFormat<T> for RonFormat where
T: Asset,
T::Data: for<'a> Deserialize<'a> + Send + Sync + 'static,
[src]
impl<T> SimpleFormat<T> for RonFormat where
T: Asset,
T::Data: for<'a> Deserialize<'a> + Send + Sync + 'static,
const NAME: &'static str
NAME: &'static str = "Ron"
A unique identifier for this format.
type Options = ()
Options specific to the format, which are passed to import
. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<T::Data, Error>
[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<T::Data, Error>
Produces asset data from given bytes.