#[repr(C)]pub struct ShapeEllipse {
pub center: ShapePoint,
pub radius_x: f32,
pub radius_y: f32,
}Expand description
An ellipse shape defined by center point and two radii
Fields§
§center: ShapePoint§radius_x: f32§radius_y: f32Trait Implementations§
Source§impl Clone for ShapeEllipse
impl Clone for ShapeEllipse
Source§fn clone(&self) -> ShapeEllipse
fn clone(&self) -> ShapeEllipse
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 ShapeEllipse
impl Debug for ShapeEllipse
Source§impl Hash for ShapeEllipse
impl Hash for ShapeEllipse
Source§impl Ord for ShapeEllipse
impl Ord for ShapeEllipse
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 ShapeEllipse
impl PartialEq for ShapeEllipse
Source§fn eq(&self, other: &ShapeEllipse) -> bool
fn eq(&self, other: &ShapeEllipse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ShapeEllipse
impl PartialOrd for ShapeEllipse
impl Eq for ShapeEllipse
impl StructuralPartialEq for ShapeEllipse
Auto Trait Implementations§
impl Freeze for ShapeEllipse
impl RefUnwindSafe for ShapeEllipse
impl Send for ShapeEllipse
impl Sync for ShapeEllipse
impl Unpin for ShapeEllipse
impl UnsafeUnpin for ShapeEllipse
impl UnwindSafe for ShapeEllipse
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