cairo_lang_utils

Trait Upcast

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

Required Methods§

source

fn upcast(&self) -> &T

Implementors§

source§

impl<T: ?Sized> Upcast<T> for T