pub enum PadAction {
Clipping,
Lane,
Reflecting,
StopAfterCopy,
Wrapping,
}
Variants§
Implementations§
Source§impl PadAction
impl PadAction
pub fn clipping() -> Self
pub fn lane() -> Self
pub fn reflecting() -> Self
pub fn stop_after_copy() -> Self
pub fn wrapping() -> Self
Source§impl PadAction
impl PadAction
Sourcepub const fn is_clipping(&self) -> bool
pub const fn is_clipping(&self) -> bool
Returns true if the enum is PadAction::Clipping otherwise false
Sourcepub const fn is_lane(&self) -> bool
pub const fn is_lane(&self) -> bool
Returns true if the enum is PadAction::Lane otherwise false
Sourcepub const fn is_reflecting(&self) -> bool
pub const fn is_reflecting(&self) -> bool
Returns true if the enum is PadAction::Reflecting otherwise false
Sourcepub const fn is_stop_after_copy(&self) -> bool
pub const fn is_stop_after_copy(&self) -> bool
Returns true if the enum is PadAction::StopAfterCopy otherwise false
Sourcepub const fn is_wrapping(&self) -> bool
pub const fn is_wrapping(&self) -> bool
Returns true if the enum is PadAction::Wrapping otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PadAction
impl<'de> Deserialize<'de> for PadAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEnumIterator for PadAction
impl IntoEnumIterator for PadAction
type Iterator = PadActionIter
fn iter() -> PadActionIter ⓘ
Source§impl Ord for PadAction
impl Ord for PadAction
Source§impl PartialOrd for PadAction
impl PartialOrd for PadAction
Source§impl VariantNames for PadAction
impl VariantNames for PadAction
impl Copy for PadAction
impl Eq for PadAction
impl StructuralPartialEq for PadAction
Auto Trait Implementations§
impl Freeze for PadAction
impl RefUnwindSafe for PadAction
impl Send for PadAction
impl Sync for PadAction
impl Unpin for PadAction
impl UnwindSafe for PadAction
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