pub enum CutDirection {
LeftToRight,
RightToLeft,
TopToBottom,
BottomToTop,
}Expand description
Direction of the gradient cut mask.
Variants§
LeftToRight
Keep content from the left edge up to the cut progress.
RightToLeft
Keep content from the right edge up to the cut progress.
TopToBottom
Keep content from the top edge down to the cut progress.
BottomToTop
Keep content from the bottom edge up to the cut progress.
Trait Implementations§
Source§impl Clone for CutDirection
impl Clone for CutDirection
Source§fn clone(&self) -> CutDirection
fn clone(&self) -> CutDirection
Returns a duplicate 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 CutDirection
impl Debug for CutDirection
Source§impl Default for CutDirection
impl Default for CutDirection
Source§fn default() -> CutDirection
fn default() -> CutDirection
Returns the “default value” for a type. Read more
Source§impl Hash for CutDirection
impl Hash for CutDirection
Source§impl PartialEq for CutDirection
impl PartialEq for CutDirection
impl Copy for CutDirection
impl Eq for CutDirection
impl StructuralPartialEq for CutDirection
Auto Trait Implementations§
impl Freeze for CutDirection
impl RefUnwindSafe for CutDirection
impl Send for CutDirection
impl Sync for CutDirection
impl Unpin for CutDirection
impl UnsafeUnpin for CutDirection
impl UnwindSafe for CutDirection
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