Struct pixels_graphics_lib::prelude::Line
source · pub struct Line { /* private fields */ }
Implementations§
Trait Implementations§
source§impl PartialEq<Line> for Line
impl PartialEq<Line> for Line
source§impl Shape for Line
impl Shape for Line
source§fn from_points(points: &[Coord]) -> Linewhere
Line: Sized,
fn from_points(points: &[Coord]) -> Linewhere
Line: Sized,
create this shape from a list of points
source§fn contains<P>(&self, point: P) -> boolwhere
P: Into<Coord>,
fn contains<P>(&self, point: P) -> boolwhere
P: Into<Coord>,
returns true if the shape contains point
source§fn translate_by<P>(&self, delta: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn translate_by<P>(&self, delta: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
change every point by +
delta
source§fn move_to<P>(&self, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn move_to<P>(&self, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
moves the shapes first point to
point
(and changes every other point to match their original distance and angle) Read moresource§fn rotate_around<P>(&self, degrees: isize, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn rotate_around<P>(&self, degrees: isize, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
rotate shape around a point
impl Eq for Line
impl StructuralEq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.