pub struct Command {
pub draw: Draw,
pub clip: Id,
pub effect: Option<Id>,
pub bounds: Rect,
}Expand description
A drawing command and the property state it is drawn under: its clip and its effect, if any. Its transform is its chunk’s.
Fields§
§draw: DrawWhat it paints, in its chunk’s coordinates.
clip: IdThe clip node it is drawn inside.
effect: Option<Id>The effect node whose layer it is drawn in; None when it is in none.
bounds: RectEvery pixel it can touch, in its chunk’s coordinates.
Auto Trait Implementations§
impl !RefUnwindSafe for Command
impl !UnwindSafe for Command
impl Forget for Command
impl Freeze for Commandwhere
*const u8 is !null: Freeze,
PhantomData<PathEl>: Freeze,
PhantomData<Srgb>: Freeze,
*const ColorStop is !null: Freeze,
PhantomData<ColorStop>: Freeze,
*const ArcInner<dyn AsRef<[u8]> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn AsRef<[u8]> + Sync + Send>>: Freeze,
PhantomData<i16>: Freeze,
PhantomData<Glyph>: Freeze,
impl Move for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Commandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathEl>: UnsafeUnpin,
PhantomData<Srgb>: UnsafeUnpin,
*const ColorStop is !null: UnsafeUnpin,
PhantomData<ColorStop>: UnsafeUnpin,
*const ArcInner<dyn AsRef<[u8]> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AsRef<[u8]> + Sync + Send>>: UnsafeUnpin,
PhantomData<i16>: UnsafeUnpin,
PhantomData<Glyph>: UnsafeUnpin,
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