var searchIndex = {}; searchIndex["quickcheck"] = {"doc":"This crate is a port of\n[Haskell's QuickCheck](http://hackage.haskell.org/package/QuickCheck).","items":[[8,"Rng","quickcheck","A random number generator.",null,null],[10,"next_u32","","Return the next random u32.",0,null],[11,"next_u64","","Return the next random u64.",0,null],[11,"next_f32","","Return the next random f32 selected from the half-open\ninterval `[0, 1)`.",0,null],[11,"next_f64","","Return the next random f64 selected from the half-open\ninterval `[0, 1)`.",0,null],[11,"fill_bytes","","Fill `dest` with random data.",0,null],[11,"gen","","Return a random value of a `Rand` type.",0,null],[11,"gen_iter","","Return an iterator that will yield an infinite number of randomly\ngenerated items.",0,null],[11,"gen_range","","Generate a random value in the range [`low`, `high`).",0,null],[11,"gen_weighted_bool","","Return a bool with a 1 in n chance of true",0,null],[11,"gen_ascii_chars","","Return an iterator of random characters from the set A-Z,a-z,0-9.",0,null],[11,"choose","","Return a random element from `values`.",0,null],[11,"shuffle","","Shuffle a mutable slice in place.",0,null],[3,"StdGen","","StdGen is the default implementation of `Gen`.",null,null],[3,"QuickCheck","","The main QuickCheck type for setting configuration and running QuickCheck.",null,null],[3,"TestResult","","Describes the status of a single instance of a test.",null,null],[5,"empty_shrinker","","Creates a shrinker with zero elements.",null,{"inputs":[],"output":{"name":"box"}}],[5,"single_shrinker","","Creates a shrinker with a single element.",null,{"inputs":[{"name":"a"}],"output":{"name":"box"}}],[5,"quickcheck","","Convenience function for running QuickCheck.",null,{"inputs":[{"name":"a"}],"output":null}],[11,"new","","",1,{"inputs":[{"name":"r"},{"name":"usize"}],"output":{"name":"stdgen"}}],[11,"next_u32","","",1,null],[11,"next_u64","","",1,null],[11,"fill_bytes","","",1,null],[11,"size","","",1,null],[11,"new","","Creates a new QuickCheck value.",2,{"inputs":[],"output":{"name":"quickcheck"}}],[11,"tests","","Set the number of tests to run.",2,null],[11,"max_tests","","Set the maximum number of tests to run.",2,null],[11,"gen","","Set the random number generator to be used by QuickCheck.",2,null],[11,"quicktest","","Tests a property and returns the result.",2,null],[11,"quickcheck","","Tests a property and calls `panic!` on failure.",2,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"passed","","Produces a test result that indicates the current test has passed.",3,{"inputs":[],"output":{"name":"testresult"}}],[11,"failed","","Produces a test result that indicates the current test has failed.",3,{"inputs":[],"output":{"name":"testresult"}}],[11,"error","","Produces a test result that indicates failure from a runtime error.",3,{"inputs":[{"name":"s"}],"output":{"name":"testresult"}}],[11,"discard","","Produces a test result that instructs `quickcheck` to ignore it.\nThis is useful for restricting the domain of your properties.\nWhen a test is discarded, `quickcheck` will replace it with a\nfresh one (up to a certain limit).",3,{"inputs":[],"output":{"name":"testresult"}}],[11,"from_bool","","Converts a `bool` to a `TestResult`. A `true` value indicates that\nthe test has passed and a `false` value indicates that the test\nhas failed.",3,{"inputs":[{"name":"bool"}],"output":{"name":"testresult"}}],[11,"must_fail","","Tests if a "procedure" fails when executed. The test passes only if\n`f` generates a task failure during its execution.",3,{"inputs":[{"name":"f"}],"output":{"name":"testresult"}}],[11,"is_failure","","Returns `true` if and only if this test result describes a failing\ntest.",3,null],[11,"is_error","","Returns `true` if and only if this test result describes a failing\ntest as a result of a run time error.",3,null],[11,"result","","",3,null],[8,"Arbitrary","","`Arbitrary` describes types whose values can be randomly generated and\nshrunk.",null,null],[10,"arbitrary","","",4,{"inputs":[{"name":"g"}],"output":{"name":"self"}}],[11,"shrink","","",4,null],[8,"Gen","","`Gen` wraps a `rand::Rng` with parameters to control the distribution of\nrandom values.",null,null],[10,"size","","",5,null],[8,"Testable","","`Testable` describes types (e.g., a function) whose values can be\ntested.",null,null],[10,"result","","",6,null],[11,"shrink","","",4,null]],"paths":[[8,"Rng"],[3,"StdGen"],[3,"QuickCheck"],[3,"TestResult"],[8,"Arbitrary"],[8,"Gen"],[8,"Testable"]]}; initSearch(searchIndex);