Struct snarkvm_console_program::Interface
source · [−]pub struct Interface<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> Interface<N>
impl<N: Network> Interface<N>
sourcepub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the interface.
sourcepub const fn members(&self) -> &IndexMap<Identifier<N>, PlaintextType<N>>
pub const fn members(&self) -> &IndexMap<Identifier<N>, PlaintextType<N>>
Returns the members of the interface.
Trait Implementations
sourceimpl<'de, N: Network> Deserialize<'de> for Interface<N>
impl<'de, N: Network> Deserialize<'de> for Interface<N>
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the interface from a string or bytes.
sourceimpl<N: Network> Parser for Interface<N>
impl<N: Network> Parser for Interface<N>
sourcefn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses an interface as:
interface message:
owner as address;
amount as u64;
sourceimpl<N: PartialEq + Network> PartialEq<Interface<N>> for Interface<N>
impl<N: PartialEq + Network> PartialEq<Interface<N>> for Interface<N>
impl<N: Eq + Network> Eq for Interface<N>
impl<N: Network> StructuralEq for Interface<N>
impl<N: Network> StructuralPartialEq for Interface<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Interface<N> where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for Interface<N>
impl<N> Sync for Interface<N>
impl<N> Unpin for Interface<N> where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for Interface<N> where
<N as Environment>::Field: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.