pub struct Filter {
pub id: String,
pub units: Units,
pub primitive_units: Units,
pub rect: NonZeroRect,
pub primitives: Vec<Primitive>,
}
Expand description
A filter element.
filter
element in the SVG.
Fields§
§id: String
Element’s ID.
Taken from the SVG itself.
Used only during SVG writing. resvg
doesn’t rely on this property.
units: Units
Region coordinate system units.
filterUnits
in the SVG.
primitive_units: Units
Content coordinate system units.
primitiveUnits
in the SVG.
rect: NonZeroRect
Filter region.
x
, y
, width
and height
in the SVG.
primitives: Vec<Primitive>
A list of filter primitives.
Trait Implementations§
Auto Trait Implementations§
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