pub struct Mask {
pub id: String,
pub units: Units,
pub content_units: Units,
pub rect: NonZeroRect,
pub kind: MaskType,
pub mask: Option<Rc<Mask>>,
pub root: Node<NodeKind>,
}
Expand description
A mask element.
mask
element in 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
Coordinate system units.
maskUnits
in SVG.
content_units: Units
Content coordinate system units.
maskContentUnits
in SVG.
rect: NonZeroRect
Mask rectangle.
x
, y
, width
and height
in SVG.
kind: MaskType
Mask type.
mask-type
in SVG.
mask: Option<Rc<Mask>>
Additional mask.
mask
in SVG.
root: Node<NodeKind>
Clip path children.
The root node is always Group
.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Mask
impl !Send for Mask
impl !Sync for Mask
impl Unpin for Mask
impl !UnwindSafe for Mask
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