Struct air_parser::ast::random_values::RandomValues
source · pub struct RandomValues { /* private fields */ }
Expand description
Declaration of random values for an AIR. Random values could be represented by a named
identifier name
which is used to identify a fixed size array of length size
and an empty
bindings
vector or by a named identifier name
which is used to identify a bindings
RandBinding vector and its size
field.
Examples
If random values are declared in form
random_values:
rand: [15]
created RandomValues instance will look like
RandomValues { name: "rand", size: 15, bindings: [] }
If random values are declared in form
random_values:
rand: [a, b[12]]
created RandomValues instance will look like
RandomValues { name: "rand", size: 13, bindings: [ RandBinding { name: "a", size: 1 }, RandBinding { name: "b", size: 12 } ] }
Implementations§
Trait Implementations§
source§impl Clone for RandomValues
impl Clone for RandomValues
source§fn clone(&self) -> RandomValues
fn clone(&self) -> RandomValues
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RandomValues
impl Debug for RandomValues
source§impl PartialEq<RandomValues> for RandomValues
impl PartialEq<RandomValues> for RandomValues
source§fn eq(&self, other: &RandomValues) -> bool
fn eq(&self, other: &RandomValues) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.