#[repr(C)]pub struct Circle { /* private fields */ }
Expand description
A circle
Implementations
sourceimpl Circle
impl Circle
sourcepub fn from_radius(radius: f64) -> Self
pub fn from_radius(radius: f64) -> Self
Construct a new circle with a specific radius
sourcepub fn with_color(self, color: [u8; 4]) -> Self
pub fn with_color(self, color: [u8; 4]) -> Self
Set the rendering color of the circle in RGBA
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Difference for T where
T: Clone + Into<Shape2d>,
impl<T> Difference for T where
T: Clone + Into<Shape2d>,
sourcefn difference<Other>(&self, other: &Other) -> Difference2d where
Other: Clone + Into<Shape2d>,
fn difference<Other>(&self, other: &Other) -> Difference2d where
Other: Clone + Into<Shape2d>,
Create a difference between self
and other