Struct zkinterface::structs::command::Command[][src]

pub struct Command {
    pub constraints_generation: bool,
    pub witness_generation: bool,
}

Fields

constraints_generation: boolwitness_generation: bool

Implementations

impl Command[src]

pub fn build<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
    &'args self,
    builder: &'mut_bldr mut FlatBufferBuilder<'bldr>
) -> WIPOffset<Root<'bldr>>
[src]

Add this structure into a Flatbuffers message builder.

pub fn write_into(&self, writer: &mut impl Write) -> Result<()>[src]

Writes this command as a Flatbuffers message into the provided buffer.

Examples

let mut buf = Vec::<u8>::new();
let command = zkinterface::Command::default();
command.write_into(&mut buf).unwrap();
assert!(buf.len() > 0);

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

impl Default for Command[src]

impl<'de> Deserialize<'de> for Command[src]

impl Eq for Command[src]

impl<'a> From<Command<'a>> for Command[src]

fn from(fb_command: Command<'_>) -> Command[src]

Convert from Flatbuffers references to owned structure.

impl PartialEq<Command> for Command[src]

impl Serialize for Command[src]

impl StructuralEq for Command[src]

impl StructuralPartialEq for Command[src]

impl<'a> TryFrom<&'a [u8]> for Command[src]

type Error = Box<dyn Error>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,