Struct plt_draw::CanvasDescriptor
source · [−]pub struct CanvasDescriptor {
pub size: Size,
pub face_color: Color,
pub image_format: ImageFormat,
}
Expand description
Describes a Canvas
to be constructed.
Fields
size: Size
The size in dots (pixels) of the canvas.
face_color: Color
The background color of the canvas.
image_format: ImageFormat
What type of image format will be drawn.
Trait Implementations
sourceimpl Clone for CanvasDescriptor
impl Clone for CanvasDescriptor
sourcefn clone(&self) -> CanvasDescriptor
fn clone(&self) -> CanvasDescriptor
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CanvasDescriptor
impl Debug for CanvasDescriptor
Auto Trait Implementations
impl RefUnwindSafe for CanvasDescriptor
impl Send for CanvasDescriptor
impl Sync for CanvasDescriptor
impl Unpin for CanvasDescriptor
impl UnwindSafe for CanvasDescriptor
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