#[repr(C)]pub struct ShapeCircle {
pub center: ShapePoint,
pub radius: f32,
}Expand description
A circle shape defined by center point and radius
Fields§
§center: ShapePoint§radius: f32Trait Implementations§
Source§impl Clone for ShapeCircle
impl Clone for ShapeCircle
Source§fn clone(&self) -> ShapeCircle
fn clone(&self) -> ShapeCircle
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 moreimpl Copy for ShapeCircle
Source§impl Debug for ShapeCircle
impl Debug for ShapeCircle
impl Eq for ShapeCircle
Source§impl Hash for ShapeCircle
impl Hash for ShapeCircle
Source§impl Ord for ShapeCircle
impl Ord for ShapeCircle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ShapeCircle
impl PartialEq for ShapeCircle
Auto Trait Implementations§
impl Freeze for ShapeCircle
impl RefUnwindSafe for ShapeCircle
impl Send for ShapeCircle
impl Sync for ShapeCircle
impl Unpin for ShapeCircle
impl UnsafeUnpin for ShapeCircle
impl UnwindSafe for ShapeCircle
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