Skip to main content

DriverGeneric

Trait DriverGeneric 

Source
pub trait DriverGeneric: Send + Any {
    // Required method
    fn name(&self) -> &str;

    // Provided methods
    fn raw_any(&self) -> Option<&(dyn Any + 'static)> { ... }
    fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)> { ... }
}

Required Methods§

Source

fn name(&self) -> &str

Provided Methods§

Source

fn raw_any(&self) -> Option<&(dyn Any + 'static)>

Subtype casting support, returns subtype as &dyn Any

Source

fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>

Subtype casting support, returns subtype as &mut dyn Any

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DriverGeneric for Empty

Source§

fn name(&self) -> &str

Implementors§