pub enum HeroDirective {
Normal,
Suppress,
Morph {
dest: Rect,
},
}Expand description
What a reported hero should do this paint (PaintCtx::report_hero).
Variants§
Normal
Paint normally — the default.
Suppress
Skip painting: the matching hero on the other surface morphs this one.
Morph
Paint under a transform mapping the hero’s absolute bounds onto dest.
Trait Implementations§
Source§impl Clone for HeroDirective
impl Clone for HeroDirective
impl Copy for HeroDirective
Source§impl Debug for HeroDirective
impl Debug for HeroDirective
Source§impl PartialEq for HeroDirective
impl PartialEq for HeroDirective
impl StructuralPartialEq for HeroDirective
Auto Trait Implementations§
impl Freeze for HeroDirective
impl RefUnwindSafe for HeroDirective
impl Send for HeroDirective
impl Sync for HeroDirective
impl Unpin for HeroDirective
impl UnsafeUnpin for HeroDirective
impl UnwindSafe for HeroDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.