Struct air_ir::PublicInput
source · pub struct PublicInput {
pub span: SourceSpan,
pub name: Identifier,
pub size: usize,
}
Expand description
Declaration of a public input for an AirScript program.
This declaration is only permitted in the root module.
Public inputs are represented by a named identifier which is used to identify a fixed
size array of length size
.
Fields§
§span: SourceSpan
§name: Identifier
§size: usize
Implementations§
source§impl PublicInput
impl PublicInput
pub fn new(span: SourceSpan, name: Identifier, size: u64) -> PublicInput
Trait Implementations§
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 PartialEq<PublicInput> for PublicInput
impl PartialEq<PublicInput> 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 ==
.source§impl Spanned for PublicInput
impl Spanned for PublicInput
fn span(&self) -> SourceSpan
impl Eq for PublicInput
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.