pub struct ClipPath {
pub id: String,
pub units: Units,
pub transform: Transform,
pub clip_path: Option<Rc<Self>>,
pub root: Node,
}Expand description
A clip-path element.
clipPath 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.
clipPathUnits in SVG.
transform: TransformClip path transform.
transform in SVG.
clip_path: Option<Rc<Self>>Additional clip path.
clip-path in SVG.
root: NodeClip path children.
The root node is always Group.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClipPath
impl !Send for ClipPath
impl !Sync for ClipPath
impl Unpin for ClipPath
impl !UnwindSafe for ClipPath
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