Enum wavedrom::PathCommand
source · pub enum PathCommand {
LineVertical(i32),
LineVerticalNoStroke(i32),
LineHorizontal(i32),
DashedLineHorizontal(i32),
Line(i32, i32),
Curve(i32, i32, i32, i32, i32, i32),
}
Expand description
A command for a signal path to take with relative coordinates.
Variants§
LineVertical(i32)
A vertical line
LineVerticalNoStroke(i32)
A vertical line without a stroke
LineHorizontal(i32)
A horizontal line
DashedLineHorizontal(i32)
A horizontal line to a dashed stroke.
Line(i32, i32)
A straight line
Curve(i32, i32, i32, i32, i32, i32)
A bezier curve
Implementations§
source§impl PathCommand
impl PathCommand
sourcepub fn has_no_stroke(&self) -> bool
pub fn has_no_stroke(&self) -> bool
Returns whether the path command has a stroke
Trait Implementations§
source§impl Clone for PathCommand
impl Clone for PathCommand
source§fn clone(&self) -> PathCommand
fn clone(&self) -> PathCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PathCommand
impl Send for PathCommand
impl Sync for PathCommand
impl Unpin for PathCommand
impl UnwindSafe for PathCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more