Enum flo_canvas::WindingRule
source · pub enum WindingRule {
NonZero,
EvenOdd,
}
Expand description
How a path should determine if it’s an outer edge or not
Variants§
NonZero
A line is an outer edge if it’s moving in the opposite direction to the ‘inner edge’ lines
EvenOdd
Every line is an outer edge
Trait Implementations§
source§impl CanvasEncoding<String> for WindingRule
impl CanvasEncoding<String> for WindingRule
source§fn encode_canvas(&self, append_to: &mut String)
fn encode_canvas(&self, append_to: &mut String)
Encodes this item by appending it to the specified string
source§impl Clone for WindingRule
impl Clone for WindingRule
source§fn clone(&self) -> WindingRule
fn clone(&self) -> WindingRule
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 moresource§impl Debug for WindingRule
impl Debug for WindingRule
source§impl<'de> Deserialize<'de> for WindingRule
impl<'de> Deserialize<'de> for WindingRule
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
source§impl PartialEq<WindingRule> for WindingRule
impl PartialEq<WindingRule> for WindingRule
source§fn eq(&self, other: &WindingRule) -> bool
fn eq(&self, other: &WindingRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.