Struct components::painting::ExactAssetImage
source · [−]pub struct ExactAssetImage {
pub asset_name: String,
pub bundle: Option<Box<dyn AssetBundle>>,
pub key_name: String,
pub package: Option<String>,
pub scale: f64,
}
Fields
asset_name: String
bundle: Option<Box<dyn AssetBundle>>
key_name: String
package: Option<String>
scale: f64
Implementations
Trait Implementations
sourceimpl AssetBundleImageProvider for ExactAssetImage
impl AssetBundleImageProvider for ExactAssetImage
fn load(
key: AssetBundleImageKey,
decode: Box<DecoderCallback>
) -> ImageStreamCompleter
fn obtain_key(
configuration: ImageConfiguration
) -> Box<dyn Future<Output = AssetBundleImageKey>>
fn resolve_stream_for_key(
configuration: ImageConfiguration,
stream: ImageStream,
key: AssetBundleImageKey,
handle_error: Option<Box<ImageErrorListener>>
)
sourceimpl ImageProvider for ExactAssetImage
impl ImageProvider for ExactAssetImage
fn create_stream(&self, configuration: ImageConfiguration) -> ImageStream
fn evict(
&self,
cache: Option<ImageCache>,
configuration: ImageConfiguration
) -> Box<dyn Future<Output = bool>>
fn load(&self, key: Key, decode: Box<DecoderCallback>) -> ImageStreamCompleter
fn obtain_cache_status(
&self,
configuration: ImageConfiguration,
handle_error: Option<Box<ImageErrorListener>>
) -> Box<dyn Future<Output = Option<ImageCacheStatus>>>
fn obtain_key(
&self,
configuration: ImageConfiguration
) -> Box<dyn Future<Output = Key>>
fn resolve(&self, configuration: ImageConfiguration) -> ImageStream
fn resolve_stream_for_key(
&self,
configuration: ImageConfiguration,
stream: ImageStream,
key: Key,
handle_error: Option<Box<ImageErrorListener>>
)
Auto Trait Implementations
impl !RefUnwindSafe for ExactAssetImage
impl !Send for ExactAssetImage
impl !Sync for ExactAssetImage
impl Unpin for ExactAssetImage
impl !UnwindSafe for ExactAssetImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.