pub struct Circle {
pub center: Point,
pub radius: f64,
}
Expand description
A new circle from center and radius.
The resulting type after applying the +
operator.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
The name of the generated JSON Schema. Read more
Generates a JSON Schema for this type. Read more
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
Returns an iterator over this shape expressed as PathEl
s;
that is, as Bézier path elements. Read more
Total length of perimeter.
The smallest rectangle that encloses the shape.
If the shape is a circle, make it available.
Returns an iterator over this shape expressed as Bézier path
segments (PathSeg
s). Read more
If the shape is a line, make it available.
If the shape is a rectangle, make it available.
If the shape is a rounded rectangle, make it available.
If the shape is stored as a slice of path elements, make
that available. Read more
The resulting type after applying the -
operator.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.