pub struct Polyfill {
pub anchor_node_draw_index: DrawOrderIndex,
pub color: Color,
pub use_polyfill_color: bool,
pub attached_node_draw_indices: Vec<DrawOrderIndex>,
}
Fields§
§anchor_node_draw_index: DrawOrderIndex
§color: Color
§use_polyfill_color: bool
§attached_node_draw_indices: Vec<DrawOrderIndex>
Implementations§
Source§impl Polyfill
impl Polyfill
pub fn from_options( options: PolyfillOptions, stickfigure: Stickfigure, ) -> Result<Self, StickfigureError>
pub fn to_options(&self) -> PolyfillOptions
pub fn set_attached_node_draw_indices( &mut self, draw_indices: Vec<DrawOrderIndex>, stickfigure: Stickfigure, ) -> Result<(), StickfigureError>
pub fn set_anchor_node_draw_index( &mut self, draw_index: DrawOrderIndex, stickfigure: Stickfigure, ) -> Result<(), StickfigureError>
pub fn insert_attached_node_draw_indices_after( &mut self, draw_indices: Vec<DrawOrderIndex>, insert_after_draw_index: DrawOrderIndex, stickfigure: Stickfigure, ) -> Result<(), StickfigureError>
pub fn insert_attached_node_draw_indices_before( &mut self, draw_indices: Vec<DrawOrderIndex>, insert_before_draw_index: DrawOrderIndex, stickfigure: Stickfigure, ) -> Result<(), StickfigureError>
pub fn remove_attached_node_draw_indices( &mut self, draw_indices: Vec<DrawOrderIndex>, stickfigure: Stickfigure, ) -> Result<(), StickfigureError>
pub fn try_set_attached_node_draw_indices( &mut self, draw_indices: Vec<DrawOrderIndex>, stickfigure: Stickfigure, ) -> Vec<DrawOrderIndex>
pub fn try_remove_attached_node_draw_indices( &mut self, draw_indices: Vec<DrawOrderIndex>, stickfigure: Stickfigure, ) -> Vec<DrawOrderIndex>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Polyfill
impl<'de> Deserialize<'de> for Polyfill
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Polyfill
impl RefUnwindSafe for Polyfill
impl Send for Polyfill
impl Sync for Polyfill
impl Unpin for Polyfill
impl UnwindSafe for Polyfill
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