pub struct RandomPhoneNumber { /* private fields */ }Expand description
Generates phone numbers according to SpatialBench spec
Implementations§
Source§impl RandomPhoneNumber
impl RandomPhoneNumber
pub fn new(seed: i64) -> Self
pub fn new_with_expected_row_count(seed: i64, seeds_per_row: i32) -> Self
pub fn next_value(&mut self, nation_key: i64) -> PhoneNumberInstance
Sourcepub fn advance_rows(&mut self, row_count: i64)
pub fn advance_rows(&mut self, row_count: i64)
Advance the inner random number generator by the specified number of rows.
pub fn row_finished(&mut self)
Trait Implementations§
Source§impl Clone for RandomPhoneNumber
impl Clone for RandomPhoneNumber
impl Copy for RandomPhoneNumber
Source§impl Debug for RandomPhoneNumber
impl Debug for RandomPhoneNumber
impl Eq for RandomPhoneNumber
Source§impl PartialEq for RandomPhoneNumber
impl PartialEq for RandomPhoneNumber
impl StructuralPartialEq for RandomPhoneNumber
Auto Trait Implementations§
impl Forget for RandomPhoneNumber
impl Freeze for RandomPhoneNumber
impl RefUnwindSafe for RandomPhoneNumber
impl Send for RandomPhoneNumber
impl Sync for RandomPhoneNumber
impl Unpin for RandomPhoneNumber
impl UnsafeUnpin for RandomPhoneNumber
impl UnwindSafe for RandomPhoneNumber
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