pub struct SvgPainter { /* private fields */ }Expand description
Parsed SVG image data that rasterizes on demand for the requested draw size.
Implementations§
Source§impl SvgPainter
impl SvgPainter
pub fn from_bytes(bytes: &[u8]) -> Result<Self, SvgPainterError>
pub fn id(&self) -> u64
pub fn intrinsic_size(&self) -> Size
pub fn rasterize( &self, pixel_size: Size, ) -> Result<ImageBitmap, SvgPainterError>
Trait Implementations§
Source§impl Clone for SvgPainter
impl Clone for SvgPainter
Source§fn clone(&self) -> SvgPainter
fn clone(&self) -> SvgPainter
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 moreSource§impl Debug for SvgPainter
impl Debug for SvgPainter
impl Eq for SvgPainter
Source§impl From<SvgPainter> for Painter
impl From<SvgPainter> for Painter
Source§fn from(value: SvgPainter) -> Self
fn from(value: SvgPainter) -> Self
Converts to this type from the input type.
Source§impl Hash for SvgPainter
impl Hash for SvgPainter
Source§impl PartialEq for SvgPainter
impl PartialEq for SvgPainter
Auto Trait Implementations§
impl Freeze for SvgPainter
impl RefUnwindSafe for SvgPainter
impl Send for SvgPainter
impl Sync for SvgPainter
impl Unpin for SvgPainter
impl UnsafeUnpin for SvgPainter
impl UnwindSafe for SvgPainter
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