pub struct DrawPrimitiveNode {
pub primitive: DrawPrimitive,
pub clip: Option<Rect>,
}Expand description
One draw primitive together with its clip.
Fields§
§primitive: DrawPrimitiveThe shape, image or other primitive to draw.
clip: Option<Rect>Rectangle that cuts the primitive, or None when it is not clipped.
Trait Implementations§
Source§impl Clone for DrawPrimitiveNode
impl Clone for DrawPrimitiveNode
Source§impl Debug for DrawPrimitiveNode
impl Debug for DrawPrimitiveNode
Source§impl PartialEq for DrawPrimitiveNode
impl PartialEq for DrawPrimitiveNode
impl StructuralPartialEq for DrawPrimitiveNode
Auto Trait Implementations§
impl !Send for DrawPrimitiveNode
impl !Sync for DrawPrimitiveNode
impl Freeze for DrawPrimitiveNode
impl RefUnwindSafe for DrawPrimitiveNode
impl Unpin for DrawPrimitiveNode
impl UnsafeUnpin for DrawPrimitiveNode
impl UnwindSafe for DrawPrimitiveNode
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