RuleExt

Trait RuleExt 

Source
pub trait RuleExt {
    // Required method
    fn downcast_ref<T: 'static>(&self) -> Option<&T>;
}
Expand description

Extension trait to add downcasting capabilities to Rule

Required Methods§

Source

fn downcast_ref<T: 'static>(&self) -> Option<&T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<R: Rule + 'static> RuleExt for Box<R>

Source§

fn downcast_ref<T: 'static>(&self) -> Option<&T>

Implementors§