struct SnapshotRandomizer {
snapshot: Snapshot,
random: OsRng,
}
Fields§
§snapshot: Snapshot
§random: OsRng
Implementations§
source§impl SnapshotRandomizer
impl SnapshotRandomizer
pub fn new(snapshot: Data) -> Self
pub fn random_token(&mut self) -> String
pub fn random_usize(&mut self) -> usize
pub fn random_proposal_id(&mut self) -> (i32, String)
pub fn random_group_id(&mut self) -> String
pub fn random_fund_id(&mut self) -> i32
Trait Implementations§
source§impl Clone for SnapshotRandomizer
impl Clone for SnapshotRandomizer
source§fn clone(&self) -> SnapshotRandomizer
fn clone(&self) -> SnapshotRandomizer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SnapshotRandomizer
impl Send for SnapshotRandomizer
impl Sync for SnapshotRandomizer
impl Unpin for SnapshotRandomizer
impl UnwindSafe for SnapshotRandomizer
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