[−][src]Struct printpdf::types::plugins::graphics::two_dimensional::line::Line
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
impl RefUnwindSafe for Line
[src]
impl Send for Line
[src]
impl Sync for Line
[src]
impl Unpin for Line
[src]
impl UnwindSafe for Line
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,