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