pub struct TextPool { /* private fields */ }Expand description
Pool of random text that follows TPC-H grammar.
Implementations§
Source§impl TextPool
impl TextPool
Sourcepub fn get_or_init_default() -> &'static Self
pub fn get_or_init_default() -> &'static Self
Returns the default text pool or initializes for the first time if that’s not already the case.
Sourcepub fn new(size: i32, distributions: &Distributions) -> Self
pub fn new(size: i32, distributions: &Distributions) -> Self
Returns a new text pool with a predefined size and set of distributions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextPool
impl RefUnwindSafe for TextPool
impl Send for TextPool
impl Sync for TextPool
impl Unpin for TextPool
impl UnwindSafe for TextPool
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