Enum ethers::types::ValueOrArray [−][src]
Expand description
Union type for representing a single value or a vector of values inside a filter
Variants
Value(T)
A single value
Array(Vec<T, Global>)
A vector of values
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ValueOrArray<T> where
T: RefUnwindSafe,
impl<T> Send for ValueOrArray<T> where
T: Send,
impl<T> Sync for ValueOrArray<T> where
T: Sync,
impl<T> Unpin for ValueOrArray<T> where
T: Unpin,
impl<T> UnwindSafe for ValueOrArray<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more