[][src]Struct wasm_game_lib::graphics::shape::Line

pub struct Line {
    pub line_style: LineStyle,
    pub point_a: (f64, f64),
    pub point_b: (f64, f64),
}

A simple drawable line

Fields

line_style: LineStyle

the style of the line

point_a: (f64, f64)point_b: (f64, f64)

Implementations

impl Line[src]

pub fn new(point_a: (f64, f64), point_b: (f64, f64)) -> Line[src]

Create a line with a default style

Trait Implementations

impl Drawable for Line[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, 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.