pub struct Circle {
pub center: Point,
pub radius: f64,
}
Expand description
A circle.
Fields§
§center: Point
The center.
radius: f64
The 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 JsonSchema for Circle
impl JsonSchema for Circle
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Mul<Circle> for TranslateScale
impl Mul<Circle> for TranslateScale
source§impl PartialEq<Circle> for Circle
impl PartialEq<Circle> for Circle
source§impl Shape for Circle
impl Shape for Circle
§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 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.