Struct amethyst_assets::RonFormat [−][src]
pub struct RonFormat;
Format for loading from Ron files.
Trait Implementations
impl Default for RonFormat[src]
impl Default for RonFormatimpl Clone for RonFormat[src]
impl Clone for RonFormatfn clone(&self) -> RonFormat[src]
fn clone(&self) -> RonFormatReturns 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 RonFormatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats 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.