#[non_exhaustive]pub enum ExtendWith {
Background,
Copy,
Repeat,
Mirror,
}Expand description
What fills the margin Extend adds.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Background
One colour, Extend::with_background’s.
Copy
The nearest edge pixel, repeated outwards.
Repeat
The image tiled.
Mirror
The image tiled and reflected, so each copy meets its neighbour at a mirrored edge.
Trait Implementations§
Source§impl Clone for ExtendWith
impl Clone for ExtendWith
Source§fn clone(&self) -> ExtendWith
fn clone(&self) -> ExtendWith
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 moreimpl Copy for ExtendWith
Source§impl Debug for ExtendWith
impl Debug for ExtendWith
Source§impl Default for ExtendWith
impl Default for ExtendWith
Source§fn default() -> ExtendWith
fn default() -> ExtendWith
Returns the “default value” for a type. Read more
impl Eq for ExtendWith
Source§impl Hash for ExtendWith
impl Hash for ExtendWith
Source§impl PartialEq for ExtendWith
impl PartialEq for ExtendWith
impl StructuralPartialEq for ExtendWith
Auto Trait Implementations§
impl Freeze for ExtendWith
impl RefUnwindSafe for ExtendWith
impl Send for ExtendWith
impl Sync for ExtendWith
impl Unpin for ExtendWith
impl UnsafeUnpin for ExtendWith
impl UnwindSafe for ExtendWith
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