[][src]Struct fakes_gen::faker::Faker

pub struct Faker<R: Rng> { /* fields omitted */ }

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]

many record

Trait Implementations

impl Default for Faker<ThreadRng>[src]

impl<R: Debug + Rng> Debug for Faker<R>[src]

Auto Trait Implementations

impl<R> Send for Faker<R> where
    R: Send

impl<R> Sync for Faker<R> where
    R: Sync

impl<R> Unpin for Faker<R> where
    R: Unpin

impl<R> UnwindSafe for Faker<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Faker<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,