[][src]Struct printpdf::types::plugins::graphics::two_dimensional::line::Line

pub struct Line {
    pub points: Vec<(Point, bool)>,
    pub is_closed: bool,
    pub has_fill: bool,
    pub has_stroke: bool,
    pub is_clipping_path: bool,
}

Fields

points: Vec<(Point, bool)>

2D Points for the line

is_closed: bool

Is the line closed or open?

has_fill: bool

Should the line be filled (via winding-number rule), for polygons

has_stroke: bool

Should the line have an outline (stroke)?

is_clipping_path: bool

Is this line a clipping path?

Implementations

impl Line[src]

pub fn set_closed(&mut self, is_closed: bool)[src]

Sets if the line is closed or not

pub fn set_fill(&mut self, has_fill: bool)[src]

Sets if the line is filled

pub fn set_stroke(&mut self, has_stroke: bool)[src]

Sets if the line is stroked (has an outline)

pub fn set_as_clipping_path(&mut self, is_clipping_path: bool)[src]

Sets if the line is a clipping path

pub fn into_stream_op(self) -> Vec<Operation>[src]

Trait Implementations

impl Clone for Line[src]

impl Debug for Line[src]

impl Default for Line[src]

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

Auto Trait Implementations

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.