#[repr(transparent)]pub struct MPSImageEdgeMode(pub NSUInteger);Available on crate feature
MPSCoreTypes only.Expand description
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl MPSImageEdgeMode
impl MPSImageEdgeMode
Sourcepub const Zero: Self
Available on crate feature MPSCore only.
pub const Zero: Self
MPSCore only.Out of bound pixels are (0,0,0,1) for image with pixel format without alpha channel and (0,0,0,0) for image with pixel format that has an alpha channel
Sourcepub const Clamp: Self
Available on crate feature MPSCore only.
pub const Clamp: Self
MPSCore only.Out of bound pixels are clamped to nearest edge pixel
Sourcepub const Mirror: Self
Available on crate feature MPSCore only.
pub const Mirror: Self
MPSCore only.Out of bound pixels are mirrored wrt. the nearest edge pixel center - ie. the edge of the image is not repeated. NOTE: The only filter that currently supports this mode is MPSNNPad- using this with other filters results in undefined behavior.
Sourcepub const MirrorWithEdge: Self
Available on crate feature MPSCore only.
pub const MirrorWithEdge: Self
MPSCore only.Out of bound pixels are mirrored wrt. the nearest edge pixel nearest border - ie. the edge of the image is repeated. NOTE: The only filter that currently supports this mode is MPSNNPad- using this with other filters results in undefined behavior.
Trait Implementations§
Source§impl Clone for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl Clone for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§fn clone(&self) -> MPSImageEdgeMode
fn clone(&self) -> MPSImageEdgeMode
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 MPSImageEdgeMode
Available on crate feature MPSCore only.
impl Debug for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§impl Encode for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl Encode for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§impl Hash for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl Hash for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§impl Ord for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl Ord for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§fn cmp(&self, other: &MPSImageEdgeMode) -> Ordering
fn cmp(&self, other: &MPSImageEdgeMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl PartialEq for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§impl PartialOrd for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl PartialOrd for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§impl RefEncode for MPSImageEdgeMode
Available on crate feature MPSCore only.
impl RefEncode for MPSImageEdgeMode
Available on crate feature
MPSCore only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MPSImageEdgeMode
Available on crate feature
MPSCore only.impl Eq for MPSImageEdgeMode
Available on crate feature
MPSCore only.impl StructuralPartialEq for MPSImageEdgeMode
Available on crate feature
MPSCore only.Auto Trait Implementations§
impl Freeze for MPSImageEdgeMode
impl RefUnwindSafe for MPSImageEdgeMode
impl Send for MPSImageEdgeMode
impl Sync for MPSImageEdgeMode
impl Unpin for MPSImageEdgeMode
impl UnwindSafe for MPSImageEdgeMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.