pub struct BondStrokes {
pub skeleton: Option<StrokePath>,
pub offsets: Vec<StrokePath>,
pub stereo: Vec<StrokePath>,
}Expand description
Strokes for one bond, ordered for painting: skeleton → offsets → stereo.
Fields§
§skeleton: Option<StrokePath>§offsets: Vec<StrokePath>§stereo: Vec<StrokePath>Implementations§
Source§impl BondStrokes
impl BondStrokes
pub fn paint_order(&self) -> Vec<&StrokePath>
pub fn into_primitives(self, color: &str) -> Vec<Primitive>
Trait Implementations§
Source§impl Clone for BondStrokes
impl Clone for BondStrokes
Source§fn clone(&self) -> BondStrokes
fn clone(&self) -> BondStrokes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BondStrokes
impl Debug for BondStrokes
Source§impl Default for BondStrokes
impl Default for BondStrokes
Source§fn default() -> BondStrokes
fn default() -> BondStrokes
Returns the “default value” for a type. Read more
Source§impl PartialEq for BondStrokes
impl PartialEq for BondStrokes
Source§fn eq(&self, other: &BondStrokes) -> bool
fn eq(&self, other: &BondStrokes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BondStrokes
Auto Trait Implementations§
impl Freeze for BondStrokes
impl RefUnwindSafe for BondStrokes
impl Send for BondStrokes
impl Sync for BondStrokes
impl Unpin for BondStrokes
impl UnsafeUnpin for BondStrokes
impl UnwindSafe for BondStrokes
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