Enum ggez::graphics::CanvasLoadOp
source · [−]pub enum CanvasLoadOp {
DontClear,
Clear(Color),
}
Expand description
Describes the image load operation when starting a new canvas.
Variants
DontClear
Keep the existing contents of the image.
Clear(Color)
Clear the image contents to a solid color.
Trait Implementations
sourceimpl Clone for CanvasLoadOp
impl Clone for CanvasLoadOp
sourcefn clone(&self) -> CanvasLoadOp
fn clone(&self) -> CanvasLoadOp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CanvasLoadOp
impl Debug for CanvasLoadOp
sourceimpl From<Color> for CanvasLoadOp
impl From<Color> for CanvasLoadOp
sourceimpl From<Option<Color>> for CanvasLoadOp
impl From<Option<Color>> for CanvasLoadOp
sourceimpl PartialEq<CanvasLoadOp> for CanvasLoadOp
impl PartialEq<CanvasLoadOp> for CanvasLoadOp
sourcefn eq(&self, other: &CanvasLoadOp) -> bool
fn eq(&self, other: &CanvasLoadOp) -> bool
impl Copy for CanvasLoadOp
impl StructuralPartialEq for CanvasLoadOp
Auto Trait Implementations
impl RefUnwindSafe for CanvasLoadOp
impl Send for CanvasLoadOp
impl Sync for CanvasLoadOp
impl Unpin for CanvasLoadOp
impl UnwindSafe for CanvasLoadOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> HasMut<T> for T
impl<T> HasMut<T> for T
sourcefn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.