Struct graphics_shapes::circle::Circle
source · [−]pub struct Circle { /* private fields */ }
Implementations
Trait Implementations
sourceimpl PartialEq<Circle> for Circle
impl PartialEq<Circle> for Circle
sourceimpl Shape for Circle
impl Shape for Circle
sourcefn from_points(points: Vec<Coord>) -> Selfwhere
Self: Sized,
fn from_points(points: Vec<Coord>) -> Selfwhere
Self: Sized,
must be [center, edge]
sourcefn translate_by<P: Into<Coord>>(&self, delta: P) -> Self
fn translate_by<P: Into<Coord>>(&self, delta: P) -> Self
change every point by +delta
sourcefn move_to<P: Into<Coord>>(&self, point: P) -> Self
fn move_to<P: Into<Coord>>(&self, point: P) -> Self
moves the shapes first point to point
(and changes every other point to match their original distance and angle) Read more
fn rotate(&self, degrees: isize) -> Selfwhere
Self: Sized,
fn rotate_around<P: Into<Coord>>(&self, degrees: isize, point: P) -> Selfwhere
Self: Sized,
impl Eq for Circle
impl StructuralEq for Circle
impl StructuralPartialEq for Circle
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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