Function tbot::predicates::media::match_extension
source · pub fn match_extension<'a, I, T, C>(
extensions: I
) -> impl Fn(Arc<C>) -> BoxFuture<'a, bool> + Send + Sync + 'awhere
for<'b> &'b I: IntoIterator<Item = &'b T>,
T: Deref<Target = str>,
I: Send + Sync + 'a,
C: Document + Send + Sync + 'a,
Expand description
Checks if the document’s extension matches one of the given extensions.