pub struct Options {
pub usvg: Options,
pub fit_to: FitTo,
pub background: Option<Color>,
}
Expand description
Rendering options.
Fields§
§usvg: Options
usvg
preprocessor options.
fit_to: FitTo
Fits the image using specified options.
Does not affect rendering to canvas.
background: Option<Color>
An image background color.
Sets an image background color. Does not affect rendering to canvas.
None
equals to transparent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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