#[repr(transparent)]pub struct MPSImageFeatureChannelFormat(pub NSUInteger);Available on crate feature
MPSCoreTypes only.Expand description
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl MPSImageFeatureChannelFormat
impl MPSImageFeatureChannelFormat
Sourcepub const None: Self
Available on crate feature MPSCore only.
pub const None: Self
MPSCore only.No format. This can mean according to context invalid format or any format. In the latter case, it is an invitation to MPS to pick a format.
Sourcepub const Unorm8: Self
Available on crate feature MPSCore only.
pub const Unorm8: Self
MPSCore only.uint8_t with value [0,255] encoding [0,1.0]
Sourcepub const Unorm16: Self
Available on crate feature MPSCore only.
pub const Unorm16: Self
MPSCore only.uint16_t with value [0,65535] encoding [0,1.0]
Sourcepub const Float16: Self
Available on crate feature MPSCore only.
pub const Float16: Self
MPSCore only.IEEE-754 16-bit floating-point value. “half precision” Representable normal range is +-[2**-14, 65504], 0, Infinity, NaN. 11 bits of precision + exponent.
Sourcepub const Float32: Self
Available on crate feature MPSCore only.
pub const Float32: Self
MPSCore only.IEEE-754 32-bit floating-point value. “single precision” (standard float type in C) 24 bits of precision + exponent
Sourcepub const _reserved0: Self
Available on crate feature MPSCore only.
pub const _reserved0: Self
MPSCore only.Reserved for later expansion
Trait Implementations§
Source§impl Clone for MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl Clone for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§fn clone(&self) -> MPSImageFeatureChannelFormat
fn clone(&self) -> MPSImageFeatureChannelFormat
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 MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl Debug for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§impl Encode for MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl Encode for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§impl Hash for MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl Hash for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§impl Ord for MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl Ord for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§fn cmp(&self, other: &MPSImageFeatureChannelFormat) -> Ordering
fn cmp(&self, other: &MPSImageFeatureChannelFormat) -> 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 MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl PartialEq for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§fn eq(&self, other: &MPSImageFeatureChannelFormat) -> bool
fn eq(&self, other: &MPSImageFeatureChannelFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl PartialOrd for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Source§impl RefEncode for MPSImageFeatureChannelFormat
Available on crate feature MPSCore only.
impl RefEncode for MPSImageFeatureChannelFormat
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 MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.impl Eq for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.impl StructuralPartialEq for MPSImageFeatureChannelFormat
Available on crate feature
MPSCore only.Auto Trait Implementations§
impl Freeze for MPSImageFeatureChannelFormat
impl RefUnwindSafe for MPSImageFeatureChannelFormat
impl Send for MPSImageFeatureChannelFormat
impl Sync for MPSImageFeatureChannelFormat
impl Unpin for MPSImageFeatureChannelFormat
impl UnwindSafe for MPSImageFeatureChannelFormat
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.