Struct triton_vm::program::PublicInput
source · pub struct PublicInput {
pub individual_tokens: Vec<BFieldElement>,
}Fields§
§individual_tokens: Vec<BFieldElement>Implementations§
source§impl PublicInput
impl PublicInput
pub fn new(individual_tokens: Vec<BFieldElement>) -> Self
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for PublicInput
impl<'arbitrary> Arbitrary<'arbitrary> for PublicInput
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl BFieldCodec for PublicInput
impl BFieldCodec for PublicInput
type Error = PublicInputBFieldDecodingError
fn decode(sequence: &[BFieldElement]) -> Result<Box<Self>, Self::Error>
fn encode(&self) -> Vec<BFieldElement>
source§fn static_length() -> Option<usize>
fn static_length() -> Option<usize>
Returns the length in number of BFieldElements if it is known at compile-time.
Otherwise, None.
source§impl Clone for PublicInput
impl Clone for PublicInput
source§fn clone(&self) -> PublicInput
fn clone(&self) -> PublicInput
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 PublicInput
impl Debug for PublicInput
source§impl Default for PublicInput
impl Default for PublicInput
source§fn default() -> PublicInput
fn default() -> PublicInput
Returns the “default value” for a type. Read more
source§impl From<&[BFieldElement]> for PublicInput
impl From<&[BFieldElement]> for PublicInput
source§fn from(tokens: &[BFieldElement]) -> Self
fn from(tokens: &[BFieldElement]) -> Self
Converts to this type from the input type.
source§impl From<&Vec<BFieldElement>> for PublicInput
impl From<&Vec<BFieldElement>> for PublicInput
source§fn from(tokens: &Vec<BFieldElement>) -> Self
fn from(tokens: &Vec<BFieldElement>) -> Self
Converts to this type from the input type.
source§impl<const N: usize> From<[BFieldElement; N]> for PublicInput
impl<const N: usize> From<[BFieldElement; N]> for PublicInput
source§fn from(tokens: [BFieldElement; N]) -> Self
fn from(tokens: [BFieldElement; N]) -> Self
Converts to this type from the input type.
source§impl From<Vec<BFieldElement>> for PublicInput
impl From<Vec<BFieldElement>> for PublicInput
source§fn from(individual_tokens: Vec<BFieldElement>) -> Self
fn from(individual_tokens: Vec<BFieldElement>) -> Self
Converts to this type from the input type.
source§impl PartialEq for PublicInput
impl PartialEq for PublicInput
source§fn eq(&self, other: &PublicInput) -> bool
fn eq(&self, other: &PublicInput) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PublicInput
impl StructuralPartialEq for PublicInput
Auto Trait Implementations§
impl Freeze for PublicInput
impl RefUnwindSafe for PublicInput
impl Send for PublicInput
impl Sync for PublicInput
impl Unpin for PublicInput
impl UnwindSafe for PublicInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more