Resource

Trait Resource 

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

Implementations§

Source§

impl dyn Resource

Source

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

Source

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

Implementors§