#[repr(transparent)]pub struct MPSGraphRandomDistribution(pub u64);
Available on crate feature
MPSGraphRandomOps
only.Expand description
The distributions supported by random operations.
See also Apple’s documentation
Tuple Fields§
§0: u64
Implementations§
Source§impl MPSGraphRandomDistribution
impl MPSGraphRandomDistribution
Sourcepub const Uniform: Self
pub const Uniform: Self
The uniform distribution, with samples drawn uniformly from [min, max) for float types, and [min, max] for integer types.
Sourcepub const TruncatedNormal: Self
pub const TruncatedNormal: Self
The normal distribution defined by mean and standard deviation, truncated to the range [min, max)
Trait Implementations§
Source§impl Clone for MPSGraphRandomDistribution
impl Clone for MPSGraphRandomDistribution
Source§fn clone(&self) -> MPSGraphRandomDistribution
fn clone(&self) -> MPSGraphRandomDistribution
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 MPSGraphRandomDistribution
impl Debug for MPSGraphRandomDistribution
Source§impl Encode for MPSGraphRandomDistribution
impl Encode for MPSGraphRandomDistribution
Source§impl Hash for MPSGraphRandomDistribution
impl Hash for MPSGraphRandomDistribution
Source§impl Ord for MPSGraphRandomDistribution
impl Ord for MPSGraphRandomDistribution
Source§fn cmp(&self, other: &MPSGraphRandomDistribution) -> Ordering
fn cmp(&self, other: &MPSGraphRandomDistribution) -> 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 PartialOrd for MPSGraphRandomDistribution
impl PartialOrd for MPSGraphRandomDistribution
Source§impl RefEncode for MPSGraphRandomDistribution
impl RefEncode for MPSGraphRandomDistribution
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 MPSGraphRandomDistribution
impl Eq for MPSGraphRandomDistribution
impl StructuralPartialEq for MPSGraphRandomDistribution
Auto Trait Implementations§
impl Freeze for MPSGraphRandomDistribution
impl RefUnwindSafe for MPSGraphRandomDistribution
impl Send for MPSGraphRandomDistribution
impl Sync for MPSGraphRandomDistribution
impl Unpin for MPSGraphRandomDistribution
impl UnwindSafe for MPSGraphRandomDistribution
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.