[][src]Struct shapes::Line

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

A line.

Fields

start: Point

Start point.

end: Point

End point.

Trait Implementations

impl Clone for Line[src]

impl Copy for Line[src]

impl Debug for Line[src]

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

impl From<[f64; 4]> for Line[src]

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

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

impl From<Line> for Line[src]

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.