[][src]Struct pipitor::rules::RuleMap

pub struct RuleMap { /* fields omitted */ }

Methods

impl RuleMap[src]

pub fn new() -> Self[src]

pub fn with_capacity(cap: usize) -> Self[src]

pub fn insert(&mut self, topic: TopicId, rule: Rule)[src]

pub fn get(&self, topic: &TopicId) -> Option<&[Rule]>[src]

pub fn get_mut(
    &mut self,
    topic: &TopicId
) -> Option<&mut impl Extend<Rule> + DerefMut<Target = [Rule]>>
[src]

pub fn contains_topic(&self, topic: &TopicId) -> bool[src]

pub fn remove(
    &mut self,
    topic: &TopicId
) -> Option<impl IntoIterator<Item = Rule> + DerefMut<Target = [Rule]>>
[src]

pub fn topics(&self) -> impl Iterator<Item = &TopicId>[src]

pub fn twitter_topics<'a>(&'a self) -> impl Iterator<Item = i64> + 'a[src]

pub fn rules(&self) -> impl Iterator<Item = &Rule>[src]

pub fn outboxes(&self) -> impl Iterator<Item = &Outbox>[src]

pub fn twitter_outboxes<'a>(&'a self) -> impl Iterator<Item = i64> + 'a[src]

pub fn route_tweet<'a>(
    &'a self,
    tweet: &'a Tweet
) -> impl Iterator<Item = &'a Outbox>
[src]

Trait Implementations

impl Default for RuleMap[src]

impl Clone for RuleMap[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for RuleMap[src]

impl<'de> Deserialize<'de> for RuleMap[src]

Auto Trait Implementations

impl Unpin for RuleMap

impl Send for RuleMap

impl Sync for RuleMap

impl !UnwindSafe for RuleMap

impl !RefUnwindSafe for RuleMap

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self