pub struct Mask {
pub id: String,
pub units: Units,
pub content_units: Units,
pub rect: NonZeroRect,
pub kind: MaskType,
pub mask: Option<Rc<Self>>,
pub root: Node,
}Expand description
A mask element.
mask element in SVG.
Fields§
§id: StringElement’s ID.
Taken from the SVG itself or generated by the parser.
Used only during SVG writing. resvg doesn’t rely on this property.
units: UnitsCoordinate system units.
maskUnits in SVG.
content_units: UnitsContent coordinate system units.
maskContentUnits in SVG.
rect: NonZeroRectMask rectangle.
x, y, width and height in SVG.
kind: MaskTypeMask type.
mask-type in SVG.
mask: Option<Rc<Self>>Additional mask.
mask in SVG.
root: NodeClip 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