Trait Resource

Source
pub trait Resource:
    Any
    + Send
    + Sync
    + 'static { }

Implementations§

Source§

impl dyn Resource

Source

pub fn downcast_arc<'a, T: Resource>(self: &'a Arc<Self>) -> Option<&'a Arc<T>>

Source

pub fn downcast<'a, T: Resource>(self: &'a Box<Self>) -> Option<&'a Box<T>>

Implementors§