pub struct CanvasExports {
pub bitmap: bool,
pub pdf: bool,
/* private fields */
}Expand description
What this toolkit can export a canvas drawing to (Cap::CanvasBitmap,
Cap::CanvasPdf). Read it to enable or hide export commands, the way
image_encode_formats decides which formats to offer.
Fields§
§bitmap: boolrender_bitmap works here, and with it PNG export wherever Bitmap::encode writes
PNG (see CanvasExports::png).
pdf: boolrender_pdf works here: the platform has a native PDF writer.
Implementations§
Trait Implementations§
Source§impl Clone for CanvasExports
impl Clone for CanvasExports
Source§fn clone(&self) -> CanvasExports
fn clone(&self) -> CanvasExports
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CanvasExports
Source§impl Debug for CanvasExports
impl Debug for CanvasExports
Source§impl Default for CanvasExports
impl Default for CanvasExports
Source§fn default() -> CanvasExports
fn default() -> CanvasExports
Returns the “default value” for a type. Read more
impl Eq for CanvasExports
Source§impl PartialEq for CanvasExports
impl PartialEq for CanvasExports
impl StructuralPartialEq for CanvasExports
Auto Trait Implementations§
impl Freeze for CanvasExports
impl RefUnwindSafe for CanvasExports
impl Send for CanvasExports
impl Sync for CanvasExports
impl Unpin for CanvasExports
impl UnsafeUnpin for CanvasExports
impl UnwindSafe for CanvasExports
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more