Enum ethabi::Topic [−][src]
pub enum Topic<T> { Any, OneOf(Vec<T>), This(T), }
Acceptable topic possibilities.
Variants
Any
Match any.
OneOf(Vec<T>)
Match any of the hashes.
This(T)
Match only this hash.
Methods
impl<T> Topic<T>
[src]
impl<T> Topic<T>
pub fn map<F, O>(self, f: F) -> Topic<O> where
F: Fn(T) -> O,
[src]
pub fn map<F, O>(self, f: F) -> Topic<O> where
F: Fn(T) -> O,
Map
pub fn is_any(&self) -> bool
[src]
pub fn is_any(&self) -> bool
Returns true if topic is empty (Topic::Any)
Trait Implementations
impl<T: Debug> Debug for Topic<T>
[src]
impl<T: Debug> Debug for Topic<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Topic<T>
[src]
impl<T: PartialEq> PartialEq for Topic<T>
fn eq(&self, other: &Topic<T>) -> bool
[src]
fn eq(&self, other: &Topic<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Topic<T>) -> bool
[src]
fn ne(&self, other: &Topic<T>) -> bool
This method tests for !=
.
impl<T> Default for Topic<T>
[src]
impl<T> Default for Topic<T>
impl<T> From<Option<T>> for Topic<T>
[src]
impl<T> From<Option<T>> for Topic<T>
impl<T> From<T> for Topic<T>
[src]
impl<T> From<T> for Topic<T>
impl<T> From<Vec<T>> for Topic<T>
[src]
impl<T> From<Vec<T>> for Topic<T>
impl<T> Into<Vec<T>> for Topic<T>
[src]
impl<T> Into<Vec<T>> for Topic<T>
impl Serialize for Topic<Hash>
[src]
impl Serialize for Topic<Hash>
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> Index<usize> for Topic<T>
[src]
impl<T> Index<usize> for Topic<T>