Struct snarkvm_wasm::program::Struct
pub struct Struct<N>where
N: Network,{ /* private fields */ }Implementations§
§impl<N> Struct<N>where
N: Network,
impl<N> Struct<N>where
N: Network,
pub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the struct.
pub const fn members(
&self
) -> &IndexMap<Identifier<N>, PlaintextType<N>, RandomState>
pub const fn members(
&self
) -> &IndexMap<Identifier<N>, PlaintextType<N>, RandomState>
Returns the members of the struct.
Trait Implementations§
§impl<'de, N> Deserialize<'de> for Struct<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Struct<N>where
N: Network,
§fn deserialize<D>(
deserializer: D
) -> Result<Struct<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Struct<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the struct from a string or bytes.
§impl<N> PartialEq<Struct<N>> for Struct<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<Struct<N>> for Struct<N>where
N: PartialEq<N> + Network,
§impl<N> Serialize for Struct<N>where
N: Network,
impl<N> Serialize for Struct<N>where
N: Network,
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serializes the struct into string or bytes.
impl<N> Eq for Struct<N>where
N: Eq + Network,
impl<N> StructuralEq for Struct<N>where
N: Network,
impl<N> StructuralPartialEq for Struct<N>where
N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for Struct<N>where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for Struct<N>
impl<N> Sync for Struct<N>
impl<N> Unpin for Struct<N>where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for Struct<N>where
<N as Environment>::Field: UnwindSafe,
Blanket Implementations§
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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more