pub enum ImageLoadMethod {
ByPath((String, [bool; 2])),
ByTexture(DebugTextureHandle),
}Expand description
Methods for loading images into the resource.
将图像加载到资源中的方法。
Variants§
ByPath((String, [bool; 2]))
Load image from a file path.
从文件路径加载图像。
ByTexture(DebugTextureHandle)
Use an existing TextureHandle for the image.
使用现有的TextureHandle作为图像。
Trait Implementations§
Source§impl Clone for ImageLoadMethod
impl Clone for ImageLoadMethod
Source§fn clone(&self) -> ImageLoadMethod
fn clone(&self) -> ImageLoadMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageLoadMethod
impl Debug for ImageLoadMethod
Source§impl Hash for ImageLoadMethod
impl Hash for ImageLoadMethod
Source§impl PartialEq for ImageLoadMethod
impl PartialEq for ImageLoadMethod
impl Eq for ImageLoadMethod
impl StructuralPartialEq for ImageLoadMethod
Auto Trait Implementations§
impl Freeze for ImageLoadMethod
impl !RefUnwindSafe for ImageLoadMethod
impl Send for ImageLoadMethod
impl Sync for ImageLoadMethod
impl Unpin for ImageLoadMethod
impl UnsafeUnpin for ImageLoadMethod
impl !UnwindSafe for ImageLoadMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more