pub enum ForeignCallParam<F> {
Single(F),
Array(Vec<F>),
}
Expand description
Single output of a foreign call.
Variants§
Implementations§
Source§impl<F: AcirField> ForeignCallParam<F>
impl<F: AcirField> ForeignCallParam<F>
pub fn fields(&self) -> Vec<F>
pub fn unwrap_field(&self) -> F
Trait Implementations§
Source§impl<F: Clone> Clone for ForeignCallParam<F>
impl<F: Clone> Clone for ForeignCallParam<F>
Source§fn clone(&self) -> ForeignCallParam<F>
fn clone(&self) -> ForeignCallParam<F>
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<F: Debug> Debug for ForeignCallParam<F>
impl<F: Debug> Debug for ForeignCallParam<F>
Source§impl<'de, F> Deserialize<'de> for ForeignCallParam<F>where
F: Deserialize<'de>,
impl<'de, F> Deserialize<'de> for ForeignCallParam<F>where
F: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<F> From<F> for ForeignCallParam<F>
impl<F> From<F> for ForeignCallParam<F>
Source§impl<F> From<Vec<F>> for ForeignCallParam<F>
impl<F> From<Vec<F>> for ForeignCallParam<F>
Source§impl<F: PartialEq> PartialEq for ForeignCallParam<F>
impl<F: PartialEq> PartialEq for ForeignCallParam<F>
Source§impl<F> Serialize for ForeignCallParam<F>where
F: Serialize,
impl<F> Serialize for ForeignCallParam<F>where
F: Serialize,
impl<F: Eq> Eq for ForeignCallParam<F>
impl<F> StructuralPartialEq for ForeignCallParam<F>
Auto Trait Implementations§
impl<F> Freeze for ForeignCallParam<F>where
F: Freeze,
impl<F> RefUnwindSafe for ForeignCallParam<F>where
F: RefUnwindSafe,
impl<F> Send for ForeignCallParam<F>where
F: Send,
impl<F> Sync for ForeignCallParam<F>where
F: Sync,
impl<F> Unpin for ForeignCallParam<F>where
F: Unpin,
impl<F> UnwindSafe for ForeignCallParam<F>where
F: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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