Function tbot::predicates::media::match_extension[][src]

pub fn match_extension<'a, I, T, C>(
    extensions: I
) -> impl Fn(Arc<C>) -> BoxFuture<'a, bool> + Send + Sync + 'a where
    &'b I: IntoIterator<Item = &'b T>,
    T: Deref<Target = str>,
    I: Send + Sync + 'a,
    C: Document + Send + Sync + 'a, 

Checks if the document’s extension matches one of the given extensions.