pub struct ConvDash<VS: VertexSource> { /* private fields */ }Expand description
Dash converter: generates a dashed line from a continuous center-line path.
Port of C++ conv_dash<VertexSource>.
Implementations§
Source§impl<VS: VertexSource> ConvDash<VS>
impl<VS: VertexSource> ConvDash<VS>
pub fn new(source: VS) -> Self
pub fn remove_all_dashes(&mut self)
pub fn add_dash(&mut self, dash_len: f64, gap_len: f64)
pub fn dash_start(&mut self, ds: f64)
pub fn set_shorten(&mut self, s: f64)
pub fn shorten(&self) -> f64
pub fn source(&self) -> &VS
pub fn source_mut(&mut self) -> &mut VS
Trait Implementations§
Source§impl<VS: VertexSource> VertexSource for ConvDash<VS>
impl<VS: VertexSource> VertexSource for ConvDash<VS>
Auto Trait Implementations§
impl<VS> Freeze for ConvDash<VS>where
VS: Freeze,
impl<VS> RefUnwindSafe for ConvDash<VS>where
VS: RefUnwindSafe,
impl<VS> Send for ConvDash<VS>where
VS: Send,
impl<VS> Sync for ConvDash<VS>where
VS: Sync,
impl<VS> Unpin for ConvDash<VS>where
VS: Unpin,
impl<VS> UnsafeUnpin for ConvDash<VS>where
VS: UnsafeUnpin,
impl<VS> UnwindSafe for ConvDash<VS>where
VS: UnwindSafe,
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