pub struct DistributionRef(/* private fields */);Expand description
Handle to a custom target distribution.
Resolved against a caller-supplied registry; sampling is deferred.
Implementations§
Trait Implementations§
Source§impl Clone for DistributionRef
impl Clone for DistributionRef
Source§fn clone(&self) -> DistributionRef
fn clone(&self) -> DistributionRef
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 DistributionRef
Source§impl Debug for DistributionRef
impl Debug for DistributionRef
Source§impl Display for DistributionRef
impl Display for DistributionRef
impl Eq for DistributionRef
Source§impl Hash for DistributionRef
impl Hash for DistributionRef
Source§impl Ord for DistributionRef
impl Ord for DistributionRef
Source§fn cmp(&self, other: &DistributionRef) -> Ordering
fn cmp(&self, other: &DistributionRef) -> Ordering
1.21.0 (const: unstable) · 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 DistributionRef
impl PartialEq for DistributionRef
Source§impl PartialOrd for DistributionRef
impl PartialOrd for DistributionRef
impl StructuralPartialEq for DistributionRef
Auto Trait Implementations§
impl Freeze for DistributionRef
impl RefUnwindSafe for DistributionRef
impl Send for DistributionRef
impl Sync for DistributionRef
impl Unpin for DistributionRef
impl UnsafeUnpin for DistributionRef
impl UnwindSafe for DistributionRef
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