pub struct SvgImageConfig {
pub width: SvgWidth,
pub height: SvgHeight,
pub scale_factor: f32,
}Fields§
§width: SvgWidthWidth configuration for SVG images
height: SvgHeightHeight configuration for SVG images
scale_factor: f32Scale factor for proportional resizing (1.0 = no scaling, 0.5 = 50%, 2.0 = 200%)
Trait Implementations§
Source§impl Clone for SvgImageConfig
impl Clone for SvgImageConfig
Source§fn clone(&self) -> SvgImageConfig
fn clone(&self) -> SvgImageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvgImageConfig
impl Debug for SvgImageConfig
Source§impl Default for SvgImageConfig
impl Default for SvgImageConfig
Source§impl PartialEq for SvgImageConfig
impl PartialEq for SvgImageConfig
impl Copy for SvgImageConfig
impl StructuralPartialEq for SvgImageConfig
Auto Trait Implementations§
impl Freeze for SvgImageConfig
impl RefUnwindSafe for SvgImageConfig
impl Send for SvgImageConfig
impl Sync for SvgImageConfig
impl Unpin for SvgImageConfig
impl UnwindSafe for SvgImageConfig
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.