#[repr(u8)]pub enum Fill {
NonZero = 0,
EvenOdd = 1,
}
Expand description
Describes the rule that determines the interior portion of a shape.
Variants§
Trait Implementations§
Source§impl CheckedBitPattern for Fill
impl CheckedBitPattern for Fill
Source§type Bits = u8
type Bits = u8
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &u8) -> bool
fn is_valid_bit_pattern(bits: &u8) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Contiguous for Fill
impl Contiguous for Fill
Source§type Int = u8
type Int = u8
The primitive integer type with an identical representation to this
type. Read more
Source§fn from_integer(value: Self::Int) -> Option<Self>
fn from_integer(value: Self::Int) -> Option<Self>
If
value
is within the range for valid instances of this type,
returns Some(converted_value)
, otherwise, returns None
. Read moreSource§fn into_integer(self) -> Self::Int
fn into_integer(self) -> Self::Int
Perform the conversion from
C
into the underlying integral type. This
mostly exists otherwise generic code would need unsafe for the value as integer
Read moreimpl Copy for Fill
impl Eq for Fill
impl NoUninit for Fill
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnwindSafe for Fill
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