pub struct SvgFitOptions {
pub padding_nm: u64,
pub min_extent_nm: u64,
pub fallback: Option<SvgViewport>,
}Expand description
Parameters controlling ViewportPolicy::Fit automatic viewport sizing.
Fields§
§padding_nm: u64Margin added around all four sides of visible bounds, in nanometres.
min_extent_nm: u64Minimum width and height enforced for degenerate or point-sized geometry, in nanometres.
fallback: Option<SvgViewport>Fallback viewport used if the rendered document contains no visible geometry.
Trait Implementations§
Source§impl Clone for SvgFitOptions
impl Clone for SvgFitOptions
Source§fn clone(&self) -> SvgFitOptions
fn clone(&self) -> SvgFitOptions
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 SvgFitOptions
Source§impl Debug for SvgFitOptions
impl Debug for SvgFitOptions
impl Eq for SvgFitOptions
Source§impl PartialEq for SvgFitOptions
impl PartialEq for SvgFitOptions
impl StructuralPartialEq for SvgFitOptions
Auto Trait Implementations§
impl Freeze for SvgFitOptions
impl RefUnwindSafe for SvgFitOptions
impl Send for SvgFitOptions
impl Sync for SvgFitOptions
impl Unpin for SvgFitOptions
impl UnsafeUnpin for SvgFitOptions
impl UnwindSafe for SvgFitOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.