Enum vapabi::Topic[][src]

pub enum Topic<T> {

Acceptable topic possibilities.



Match any.


Match any of the hashes.


Match only this hash.


impl<T> Topic<T>[src]

pub fn map<F, O>(self, f: F) -> Topic<O> where
    F: Fn(T) -> O, 


pub fn is_any(&self) -> bool[src]

Returns true if topic is empty (Topic::Any)

Trait Implementations

impl<T: Debug> Debug for Topic<T>[src]

impl<T> Default for Topic<T>[src]

impl<T> From<Option<T>> for Topic<T>[src]

impl<T> From<T> for Topic<T>[src]

impl<T> From<Vec<T, Global>> for Topic<T>[src]

impl<T> Index<usize> for Topic<T>[src]

type Output = T

The returned type after indexing.

impl<T> Into<Vec<T, Global>> for Topic<T>[src]

impl<T: PartialEq> PartialEq<Topic<T>> for Topic<T>[src]

impl Serialize for Topic<Hash>[src]

impl<T> StructuralPartialEq for Topic<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Topic<T> where
    T: RefUnwindSafe

impl<T> Send for Topic<T> where
    T: Send

impl<T> Sync for Topic<T> where
    T: Sync

impl<T> Unpin for Topic<T> where
    T: Unpin

impl<T> UnwindSafe for Topic<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,