Struct zkinterface::structs::witness::Witness[][src]

pub struct Witness {
    pub assigned_variables: Variables,
}

Fields

assigned_variables: Variables

Implementations

impl Witness[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 witness as a Flatbuffers message into the provided buffer.

Examples

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

Trait Implementations

impl Clone for Witness[src]

impl Debug for Witness[src]

impl Default for Witness[src]

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

impl Eq for Witness[src]

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

fn from(fb_witness: Witness<'_>) -> Witness[src]

Convert from Flatbuffers references to owned structure.

impl PartialEq<Witness> for Witness[src]

impl Serialize for Witness[src]

impl StructuralEq for Witness[src]

impl StructuralPartialEq for Witness[src]

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

type Error = Box<dyn Error>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Witness

impl Send for Witness

impl Sync for Witness

impl Unpin for Witness

impl UnwindSafe for Witness

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>,