#[repr(u8)]pub enum Extend {
Pad = 0,
Repeat = 1,
Reflect = 2,
}
Expand description
Defines how a brush is extended when the content does not fill a shape.
Variants§
Pad = 0
Extends the image by repeating the edge color of the brush.
Repeat = 1
Extends the image by repeating the brush.
Reflect = 2
Extends the image by reflecting the brush.
Trait Implementations§
Source§impl CheckedBitPattern for Extend
impl CheckedBitPattern for Extend
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 Extend
impl Contiguous for Extend
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 Extend
impl Eq for Extend
impl NoUninit for Extend
impl StructuralPartialEq for Extend
Auto Trait Implementations§
impl Freeze for Extend
impl RefUnwindSafe for Extend
impl Send for Extend
impl Sync for Extend
impl Unpin for Extend
impl UnwindSafe for Extend
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