pub struct UniformIntProvider {
pub min_inclusive: i32,
pub max_inclusive: i32,
}Expand description
Uniform inclusive int provider.
This is used for vanilla fields whose codec is specifically UniformInt,
not the general IntProvider dispatch.
Fields§
§min_inclusive: i32Inclusive lower bound.
max_inclusive: i32Inclusive upper bound.
Implementations§
Trait Implementations§
Source§impl Clone for UniformIntProvider
impl Clone for UniformIntProvider
Source§fn clone(&self) -> UniformIntProvider
fn clone(&self) -> UniformIntProvider
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 UniformIntProvider
Source§impl Debug for UniformIntProvider
impl Debug for UniformIntProvider
Source§impl<'de> Deserialize<'de> for UniformIntProvider
impl<'de> Deserialize<'de> for UniformIntProvider
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UniformIntProvider
impl RefUnwindSafe for UniformIntProvider
impl Send for UniformIntProvider
impl Sync for UniformIntProvider
impl Unpin for UniformIntProvider
impl UnsafeUnpin for UniformIntProvider
impl UnwindSafe for UniformIntProvider
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