pub struct ValueGenerator { /* private fields */ }Available on crate feature
serde_json only.Expand description
Generator for serde_json::Value values. Created by values().
Trait Implementations§
Source§impl Generator<Value> for ValueGenerator
impl Generator<Value> for ValueGenerator
Source§fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
Transform generated values using a function. Read more
Source§fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
Generate a value, then use it to choose or configure another generator. Read more
Auto Trait Implementations§
impl Freeze for ValueGenerator
impl !RefUnwindSafe for ValueGenerator
impl Send for ValueGenerator
impl Sync for ValueGenerator
impl Unpin for ValueGenerator
impl UnsafeUnpin for ValueGenerator
impl !UnwindSafe for ValueGenerator
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