obsidian-parser 0.9.4

Blazingly fast Obsidian vault parser with graph analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! It is module **only** for test!

#[must_use]
pub(crate) fn is_error<E>(error: impl std::error::Error) -> bool
where
    E: std::error::Error + 'static,
{
    let mut source = error.source();
    while let Some(err) = source {
        if err.downcast_ref::<E>().is_some() {
            return true;
        }

        source = err.source();
    }

    false
}