Struct UniformDuration
struct UniformDuration { ... }
The back-end implementing UniformSampler for Duration.
Unless you are implementing UniformSampler for your own types, this type
should not be used directly, use Uniform instead.
Implementations
impl Clone for UniformDuration
fn clone(self: &Self) -> UniformDuration
impl Copy for UniformDuration
impl Debug for UniformDuration
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for UniformDuration
impl Freeze for UniformDuration
impl PartialEq for UniformDuration
fn eq(self: &Self, other: &UniformDuration) -> bool
impl RefUnwindSafe for UniformDuration
impl Send for UniformDuration
impl Serialize for UniformDuration
fn serialize<__S>(self: &Self, __serializer: __S) -> Result<<__S as >::Ok, <__S as >::Error> where __S: Serializer
impl StructuralPartialEq for UniformDuration
impl Sync for UniformDuration
impl UniformSampler for UniformDuration
fn new<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error> where B1: SampleBorrow<<Self as >::X> + Sized, B2: SampleBorrow<<Self as >::X> + Sizedfn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error> where B1: SampleBorrow<<Self as >::X> + Sized, B2: SampleBorrow<<Self as >::X> + Sizedfn sample<R: Rng + ?Sized>(self: &Self, rng: &mut R) -> Duration
impl Unpin for UniformDuration
impl UnsafeUnpin for UniformDuration
impl UnwindSafe for UniformDuration
impl<'de> Deserialize for UniformDuration
fn deserialize<__D>(__deserializer: __D) -> Result<Self, <__D as >::Error> where __D: Deserializer<'de>
impl<T> Any for UniformDuration
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for UniformDuration
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for UniformDuration
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for UniformDuration
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> DeserializeOwned for UniformDuration
impl<T> From for UniformDuration
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for UniformDuration
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for UniformDuration
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for UniformDuration
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for UniformDuration
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip for UniformDuration
fn vzip(self: Self) -> V