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) -> Self
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: &Self) -> 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>,