pub struct Circle {
    pub center: Point,
    pub radius: f64,
}Expand description
A circle.
Fields§
§center: PointThe center.
radius: f64The radius.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Circle
 
impl<'de> Deserialize<'de> for Circle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Mul<Circle> for TranslateScale
 
impl Mul<Circle> for TranslateScale
Source§impl Shape for Circle
 
impl Shape for Circle
Source§type PathElementsIter<'iter> = CirclePathIter
 
type PathElementsIter<'iter> = CirclePathIter
The iterator returned by the 
path_elements method.Source§fn path_elements(&self, tolerance: f64) -> CirclePathIter
 
fn path_elements(&self, tolerance: f64) -> CirclePathIter
Source§fn bounding_box(&self) -> Rect
 
fn bounding_box(&self) -> Rect
The smallest rectangle that encloses the shape.
Source§fn into_path(self, tolerance: f64) -> BezPathwhere
    Self: Sized,
 
fn into_path(self, tolerance: f64) -> BezPathwhere
    Self: Sized,
Convert into a Bézier path. Read more
Source§fn path_segments(&self, tolerance: f64) -> Segments<Self::PathElementsIter<'_>> ⓘ
 
fn path_segments(&self, tolerance: f64) -> Segments<Self::PathElementsIter<'_>> ⓘ
Source§fn as_rounded_rect(&self) -> Option<RoundedRect>
 
fn as_rounded_rect(&self) -> Option<RoundedRect>
If the shape is a rounded rectangle, make it available.
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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