pub struct Filter { /* private fields */ }
Expand description
A filter element.
filter
element in the SVG.
Implementations§
source§impl Filter
impl Filter
sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
Element’s ID.
Taken from the SVG itself.
Used only during SVG writing. resvg
doesn’t rely on this property.
sourcepub fn rect(&self) -> NonZeroRect
pub fn rect(&self) -> NonZeroRect
Filter region.
x
, y
, width
and height
in the SVG.
sourcepub fn primitives(&self) -> &[Primitive]
pub fn primitives(&self) -> &[Primitive]
A list of filter primitives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl !RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl !UnwindSafe for Filter
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