#[non_exhaustive]pub enum ShrinkAxis {
Both,
Horizontal,
Vertical,
}Expand description
Axes affected when shrinking a box by its padding or margin.
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.
Both
Shrink both axes.
Horizontal
Shrink only the horizontal axis.
Vertical
Shrink only the vertical axis.
Trait Implementations§
Source§impl Clone for ShrinkAxis
impl Clone for ShrinkAxis
impl Copy for ShrinkAxis
Source§impl Debug for ShrinkAxis
impl Debug for ShrinkAxis
impl Eq for ShrinkAxis
Source§impl PartialEq for ShrinkAxis
impl PartialEq for ShrinkAxis
impl StructuralPartialEq for ShrinkAxis
Auto Trait Implementations§
impl Freeze for ShrinkAxis
impl RefUnwindSafe for ShrinkAxis
impl Send for ShrinkAxis
impl Sync for ShrinkAxis
impl Unpin for ShrinkAxis
impl UnsafeUnpin for ShrinkAxis
impl UnwindSafe for ShrinkAxis
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