pub struct RasterOptions {
pub bounds: (u32, u32),
pub scale: f64,
}Expand description
Raster fitting is independent of logical layout. Bounds are physical pixels; scale is the requested physical pixels per logical SVG unit (1x or Retina). All output remains subject to the crate’s pixel, edge and source-size caps.
Fields§
§bounds: (u32, u32)§scale: f64Implementations§
Trait Implementations§
Source§impl Clone for RasterOptions
impl Clone for RasterOptions
impl Copy for RasterOptions
Auto Trait Implementations§
impl Freeze for RasterOptions
impl RefUnwindSafe for RasterOptions
impl Send for RasterOptions
impl Sync for RasterOptions
impl Unpin for RasterOptions
impl UnsafeUnpin for RasterOptions
impl UnwindSafe for RasterOptions
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