Enum egui::load::TexturePoll
source · pub enum TexturePoll {
Pending {
size: Option<Vec2>,
},
Ready {
texture: SizedTexture,
},
}
Expand description
Represents a texture is currently being loaded.
This is similar to std::task::Poll
, but the Pending
variant
contains an optional size
, which may be used during layout to
pre-allocate space the image.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TexturePoll
impl Clone for TexturePoll
source§fn clone(&self) -> TexturePoll
fn clone(&self) -> TexturePoll
Returns a copy 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 moreimpl Copy for TexturePoll
Auto Trait Implementations§
impl RefUnwindSafe for TexturePoll
impl Send for TexturePoll
impl Sync for TexturePoll
impl Unpin for TexturePoll
impl UnwindSafe for TexturePoll
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