Struct shapes::Line [] [src]

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

A line.

Fields

Start point.

End point.

Trait Implementations

impl Copy for Line
[src]

impl Clone for Line
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Line
[src]

[src]

Formats the value using the given formatter.

impl From<Line> for Line
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.