[−][src]Struct zkinterface::zkinterface_generated::zkinterface::Variables
Fields
_tab: Table<'a>
Methods
impl<'a> Variables<'a>
[src]
pub fn init_from_table(table: Table<'a>) -> Self
[src]
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args VariablesArgs<'args>
) -> WIPOffset<Variables<'bldr>>
[src]
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args VariablesArgs<'args>
) -> WIPOffset<Variables<'bldr>>
pub const VT_VARIABLE_IDS: VOffsetT
[src]
pub const VT_VALUES: VOffsetT
[src]
pub const VT_INFO: VOffsetT
[src]
pub fn variable_ids(&self) -> Option<Vector<'a, u64>>
[src]
The IDs of the variables.
- IDs must be unique within a constraint system.
- The ID 0 always represents the constant variable one.
pub fn values(&self) -> Option<&'a [u8]>
[src]
Optional: values assigned to variables.
-
Values are finite field elements as defined by
circuit.field_order
. -
Elements are represented in canonical little-endian form.
-
Elements appear in the same order as variable_ids.
-
Multiple elements are concatenated in a single byte array.
-
The element representation may be truncated and its size shorter than
circuit.field_order
. Truncated bytes are treated as zeros. -
The size of an element representation is determined by:
element size = values.length / variable_ids.length
pub fn info(&self) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>
[src]
Optional: Any complementary info that may be useful to the recipient.
Example: human-readable names.
Example: custom variable typing information (is_bit
, ...).
Example: a Merkle authentication path in some custom format.
Trait Implementations
impl<'a> Copy for Variables<'a>
[src]
impl<'a> PartialEq<Variables<'a>> for Variables<'a>
[src]
impl<'a> Clone for Variables<'a>
[src]
fn clone(&self) -> Variables<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> From<Variables<'a>> for VariablesOwned
[src]
fn from(vars: Variables) -> VariablesOwned
[src]
impl<'a> Debug for Variables<'a>
[src]
impl<'a> Follow<'a> for Variables<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,