Struct UniformDuration
pub struct UniformDuration { /* private fields */ }
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.
Trait Implementations
impl Clone for UniformDuration
fn clone(&self) -> UniformDuration
impl Copy for UniformDuration
impl Debug for UniformDuration
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for UniformDuration
impl PartialEq for UniformDuration
fn eq(&self, other: &UniformDuration) -> bool
impl Serialize for UniformDuration
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where __S: Serializer,
impl StructuralPartialEq for UniformDuration
impl UniformSampler for UniformDuration
type X = Duration;fn new<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error> where B1: SampleBorrow<Self::X> + Sized, B2: SampleBorrow<Self::X> + Sized,fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error> where B1: SampleBorrow<Self::X> + Sized, B2: SampleBorrow<Self::X> + Sized,fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Duration
impl<'de> Deserialize<'de> for UniformDuration
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where __D: Deserializer<'de>,
Auto Trait Implementations
impl Freeze for UniformDuration
impl RefUnwindSafe for UniformDuration
impl Send for UniformDuration
impl Sync for UniformDuration
impl Unpin for UniformDuration
impl UnsafeUnpin for UniformDuration
impl UnwindSafe for UniformDuration
Blanket Implementations
impl<T> Any for UniformDuration
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UniformDuration
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UniformDuration
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for UniformDuration
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> DeserializeOwned for UniformDuration
where
T: for<'de> Deserialize<'de>,
impl<T> From<T> for UniformDuration
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for UniformDuration
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for UniformDuration
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for UniformDuration
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for UniformDuration
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>