Skip to main content

GuardExt

Trait GuardExt 

Source
pub trait GuardExt: Guard + Sized {
    // Provided methods
    fn and<R: Guard>(self, other: R) -> And<Self, R> { ... }
    fn or<R: Guard>(self, other: R) -> Or<Self, R> { ... }
}
Expand description

An extension trait for Guard.

Provided Methods§

Source

fn and<R: Guard>(self, other: R) -> And<Self, R>

Perform and operator on two rules

Source

fn or<R: Guard>(self, other: R) -> Or<Self, R>

Perform or operator on two rules

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Guard> GuardExt for T