pub struct RenderOptions {
pub scale: f64,
pub size: Option<(u32, u32)>,
}Expand description
Options for render.
Fields§
§scale: f64Output scale (1.0 = canvas size).
size: Option<(u32, u32)>Output size; by default the canvas size × scale rounded down.
CSP’s half-size levels round down at each step, so a quarter-size
image can be a pixel larger than size × 0.25 rounded down.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
impl Copy for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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