Trait Upcast

Source
pub trait Upcast<T: ?Sized> {
    // Required method
    fn upcast(&self) -> &T;
}

Required Methods§

Source

fn upcast(&self) -> &T

Implementors§

impl Upcast<dyn DefDatabase> for RootDatabase

impl Upcast<dyn ExpandDatabase> for RootDatabase

impl Upcast<dyn HirDatabase> for RootDatabase

impl Upcast<dyn RootQueryDb> for RootDatabase

impl Upcast<dyn SourceDatabase> for RootDatabase