pub struct F(pub Arc<dyn Filter>);Expand description
Ergonomic wrapper around Arc<dyn Filter> with operator overloads.
F is Clone-able: cloning shares the underlying filter via Arc.
This allows filter constants (like TEXT, COMMAND) to be used with
the bitwise composition operators (&, |, !) without consuming them.
Tuple Fields§
§0: Arc<dyn Filter>Implementations§
Trait Implementations§
Source§impl Filter for F
impl Filter for F
Source§fn check_update(&self, update: &Update) -> FilterResult
fn check_update(&self, update: &Update) -> FilterResult
Check whether the update should be handled, optionally returning
extracted data.
Auto Trait Implementations§
impl Freeze for F
impl !RefUnwindSafe for F
impl Send for F
impl Sync for F
impl Unpin for F
impl UnsafeUnpin for F
impl !UnwindSafe for F
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.