[][src]Trait binjs::generic::pick::Pick

pub trait Pick {
    fn random<T>(&self, syntax: &Spec, rng: &mut T, depth_limit: isize) -> Value
    where
        T: Rng
; }

Required methods

fn random<T>(&self, syntax: &Spec, rng: &mut T, depth_limit: isize) -> Value where
    T: Rng

Loading content...

Implementors

impl Pick for NamedType[src]

impl Pick for TypeSpec[src]

impl Pick for Picker[src]

impl Pick for Interface[src]

fn random<T>(&self, syntax: &Spec, rng: &mut T, depth_limit: isize) -> Value where
    T: Rng
[src]

Generate a random instance of this interface matching the syntax.

impl Pick for Spec[src]

fn random<T>(&self, &Spec, rng: &mut T, depth_limit: isize) -> Value where
    T: Rng
[src]

Generate a random AST matching the grammar.

depth_limit is used as hint to control the depth of the tree

impl Pick for Type[src]

Loading content...