#[repr(C)]pub struct SvgMultiPolygon {
pub rings: SvgPathVec,
}Fields§
§rings: SvgPathVecNOTE: If a ring represents a hole, simply reverse the order of points
Implementations§
Source§impl SvgMultiPolygon
impl SvgMultiPolygon
Sourcepub const fn create(rings: SvgPathVec) -> SvgMultiPolygon
pub const fn create(rings: SvgPathVec) -> SvgMultiPolygon
Creates a new SvgMultiPolygon from a vector of paths (rings) NOTE: If a ring represents a hole, simply reverse the order of points
Sourcepub fn get_bounds(&self) -> SvgRect
pub fn get_bounds(&self) -> SvgRect
Returns the axis-aligned bounding rectangle of all rings in this multi-polygon.
Trait Implementations§
Source§impl Clone for SvgMultiPolygon
impl Clone for SvgMultiPolygon
Source§fn clone(&self) -> SvgMultiPolygon
fn clone(&self) -> SvgMultiPolygon
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvgMultiPolygon
impl Debug for SvgMultiPolygon
Source§impl FromIterator<SvgMultiPolygon> for SvgMultiPolygonVec
impl FromIterator<SvgMultiPolygon> for SvgMultiPolygonVec
Source§fn from_iter<T>(iter: T) -> SvgMultiPolygonVecwhere
T: IntoIterator<Item = SvgMultiPolygon>,
fn from_iter<T>(iter: T) -> SvgMultiPolygonVecwhere
T: IntoIterator<Item = SvgMultiPolygon>,
Creates a value from an iterator. Read more
Source§impl PartialEq for SvgMultiPolygon
impl PartialEq for SvgMultiPolygon
Source§fn eq(&self, other: &SvgMultiPolygon) -> bool
fn eq(&self, other: &SvgMultiPolygon) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SvgMultiPolygon
impl PartialOrd for SvgMultiPolygon
Source§impl SvgMultiPolygonTessellation for SvgMultiPolygon
impl SvgMultiPolygonTessellation for SvgMultiPolygon
fn tessellate_fill(&self, fill_style: SvgFillStyle) -> TessellatedSvgNode
fn tessellate_stroke(&self, stroke_style: SvgStrokeStyle) -> TessellatedSvgNode
impl StructuralPartialEq for SvgMultiPolygon
Auto Trait Implementations§
impl Freeze for SvgMultiPolygon
impl RefUnwindSafe for SvgMultiPolygon
impl Send for SvgMultiPolygon
impl Sync for SvgMultiPolygon
impl Unpin for SvgMultiPolygon
impl UnsafeUnpin for SvgMultiPolygon
impl UnwindSafe for SvgMultiPolygon
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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