Struct shapes::Line [] [src]

pub struct Line {
    pub start: Point,
    pub end: Point,
}

A line.

Fields

start: Point

Start point.

end: Point

End point.

Trait Implementations

impl Debug for Line
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Line
[src]

fn clone(&self) -> Line

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Line
[src]

impl From<Line> for Line
[src]

fn from(line: Line) -> Line

Performs the conversion.

impl<T: Into<Point>, U: Into<Point>> From<(T, U)> for Line
[src]

fn from((start, end): (T, U)) -> Line

Performs the conversion.

impl From<(Scalar, Scalar, Scalar, Scalar)> for Line
[src]

fn from((ax, ay, bx, by): (Scalar, Scalar, Scalar, Scalar)) -> Line

Performs the conversion.

impl<T: Copy + Into<Point>> From<[T; 2]> for Line
[src]

fn from(line: [T; 2]) -> Line

Performs the conversion.