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 UiFormat
fn clone(&self) -> UiFormat
[src]
fn clone(&self) -> UiFormat
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 UiFormat
[src]
impl Debug for UiFormat
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<A, I, F> SimpleFormat<UiPrefab<A, I, F>> for UiFormat where
A: Format<Audio, Options = ()> + Sync + DeserializeOwned,
I: Format<Texture, Options = TextureMetadata> + Sync + DeserializeOwned + Clone,
F: Format<FontAsset, Options = ()> + Sync + DeserializeOwned + Clone,
[src]
impl<A, I, F> SimpleFormat<UiPrefab<A, I, F>> for UiFormat where
A: Format<Audio, Options = ()> + Sync + DeserializeOwned,
I: Format<Texture, Options = TextureMetadata> + Sync + DeserializeOwned + Clone,
F: Format<FontAsset, Options = ()> + Sync + DeserializeOwned + Clone,
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<A, I, F>>
[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> AssetResult<UiPrefab<A, I, F>>
Produces asset data from given bytes.