pub struct SvgShape {
pub path: Path,
pub fill: Brush,
pub rule: FillRule,
pub stroke: Option<SvgStroke>,
pub clip_path: Option<ClipPath>,
}Expand description
A single shape inside an inline SVG: a viewBox-space path, its paint
(solid color or gradient), and the fill rule (default nonzero). stroke
is None when the shape has no stroke. clip_path optionally references a
clip path that masks this shape.
Fields§
§path: Path§fill: Brush§rule: FillRule§stroke: Option<SvgStroke>§clip_path: Option<ClipPath>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SvgShape
impl RefUnwindSafe for SvgShape
impl Send for SvgShape
impl Sync for SvgShape
impl Unpin for SvgShape
impl UnsafeUnpin for SvgShape
impl UnwindSafe for SvgShape
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more