pub struct TextPool { /* private fields */ }Expand description
Pool of random text that follows SpatialBench 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more