Struct amethyst_ui::UiFormat [−][src]
pub struct UiFormat;
Ui format.
Load UiPrefab from ron file.
Trait Implementations
impl Clone for UiFormat[src]
impl Clone for UiFormatfn clone(&self) -> UiFormat[src]
fn clone(&self) -> UiFormatReturns 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 UiFormat[src]
impl Debug for UiFormatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<I, F> SimpleFormat<UiPrefab<I, F>> for UiFormat where
I: Format<Texture, Options = TextureMetadata> + Sync + for<'a> Deserialize<'a>,
F: Format<FontAsset, Options = ()> + Sync + for<'a> Deserialize<'a>, [src]
impl<I, F> SimpleFormat<UiPrefab<I, F>> for UiFormat where
I: Format<Texture, Options = TextureMetadata> + Sync + for<'a> Deserialize<'a>,
F: Format<FontAsset, Options = ()> + Sync + for<'a> Deserialize<'a>, const NAME: &'static str
NAME: &'static str = "Ui"
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>, _: ()) -> AssetResult<UiPrefab<I, F>>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> AssetResult<UiPrefab<I, F>>Produces asset data from given bytes.