Struct plotly::layout::ShapeLine[][src]

pub struct ShapeLine { /* fields omitted */ }

Implementations

impl ShapeLine[src]

pub fn new() -> ShapeLine[src]

pub fn color<C: Color>(self, color: C) -> ShapeLine[src]

Sets the line color.

pub fn width(self, width: f64) -> ShapeLine[src]

Sets the line width (in px).

pub fn dash(self, dash: &str) -> ShapeLine[src]

Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").

Trait Implementations

impl Debug for ShapeLine[src]

impl Default for ShapeLine[src]

impl Serialize for ShapeLine[src]

Auto Trait Implementations

impl RefUnwindSafe for ShapeLine[src]

impl Send for ShapeLine[src]

impl Sync for ShapeLine[src]

impl Unpin for ShapeLine[src]

impl UnwindSafe for ShapeLine[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]