Skip to main content

guards

Macro guards 

Source
macro_rules! guards {
    ($($guard:expr),* $(,)?) => { ... };
}
Expand description

Helper macro for creating Guards composition

§Example

use gpui_navigator::{guards, AuthGuard, RoleGuard};

let guard = guards![
    AuthGuard::new(|_| true, "/login"),
];