pub trait Upcastable {
    // Required methods
    fn upcast_any_ref(&self) -> &dyn Any;
    fn upcast_any_mut(&mut self) -> &mut dyn Any;
    fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>;
}
Expand description

Trait needed to get downcasting from VirtualFile to work.

Required Methods§

source

fn upcast_any_ref(&self) -> &dyn Any

source

fn upcast_any_mut(&mut self) -> &mut dyn Any

source

fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>

Implementors§

source§

impl<T: Any + Debug + 'static> Upcastable for T