[−][src]Struct fakes_gen::faker::Faker
Methods
impl<R: Rng> Faker<R>
[src]
pub fn new(rng: R, locale: Locale) -> Faker<R>
[src]
pub fn locale(&self) -> Locale
[src]
pub fn gen(&mut self, option: &FakeOption) -> String
[src]
one data
pub fn gen_record(&mut self, options: &[FakeOption]) -> Vec<String>
[src]
one record
pub fn gen_data_set(
&mut self,
count: usize,
options: &[FakeOption]
) -> Vec<Vec<String>>
[src]
&mut self,
count: usize,
options: &[FakeOption]
) -> Vec<Vec<String>>
many record
Trait Implementations
Auto Trait Implementations
impl<R> Send for Faker<R> where
R: Send,
R: Send,
impl<R> Sync for Faker<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Faker<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Faker<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Faker<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,