#[non_exhaustive]#[repr(u32)]pub enum BorderType {
Undefined = 0,
Constant = 1,
Replicate = 2,
Wrap = 3,
Mirror = 4,
}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.
Trait Implementations§
Source§impl Clone for BorderType
impl Clone for BorderType
Source§fn clone(&self) -> BorderType
fn clone(&self) -> BorderType
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 BorderType
Source§impl Debug for BorderType
impl Debug for BorderType
Source§impl Display for BorderType
impl Display for BorderType
impl Eq for BorderType
Source§impl From<BorderType> for u32
impl From<BorderType> for u32
Source§fn from(enum_value: BorderType) -> Self
fn from(enum_value: BorderType) -> Self
Converts to this type from the input type.
Source§impl From<BorderType> for NppiBorderType
impl From<BorderType> for NppiBorderType
Source§fn from(value: BorderType) -> Self
fn from(value: BorderType) -> Self
Converts to this type from the input type.
Source§impl From<NppiBorderType> for BorderType
impl From<NppiBorderType> for BorderType
Source§fn from(value: NppiBorderType) -> Self
fn from(value: NppiBorderType) -> Self
Converts to this type from the input type.
Source§impl Hash for BorderType
impl Hash for BorderType
Source§impl PartialEq for BorderType
impl PartialEq for BorderType
Source§fn eq(&self, other: &BorderType) -> bool
fn eq(&self, other: &BorderType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BorderType
Source§impl TryFrom<u32> for BorderType
impl TryFrom<u32> for BorderType
Source§type Error = TryFromPrimitiveError<BorderType>
type Error = TryFromPrimitiveError<BorderType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for BorderType
impl TryFromPrimitive for BorderType
const NAME: &'static str = "BorderType"
type Primitive = u32
type Error = TryFromPrimitiveError<BorderType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for BorderType
impl RefUnwindSafe for BorderType
impl Send for BorderType
impl Sync for BorderType
impl Unpin for BorderType
impl UnsafeUnpin for BorderType
impl UnwindSafe for BorderType
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