Struct sixtyfps_compilerlib::typeregister::TypeRegister[][src]

pub struct TypeRegister { /* fields omitted */ }

Implementations

impl TypeRegister[src]

pub fn insert_type(&mut self, t: Type)[src]

FIXME: same as ‘add’ ?

pub fn insert_type_with_name(&mut self, t: Type, name: String)[src]

pub fn builtin() -> Rc<RefCell<Self>>[src]

pub fn new(parent: &Rc<RefCell<TypeRegister>>) -> Self[src]

pub fn lookup(&self, name: &str) -> Type[src]

pub fn lookup_element(&self, name: &str) -> Result<Type, String>[src]

pub fn lookup_qualified<Member: AsRef<str>>(&self, qualified: &[Member]) -> Type[src]

pub fn add(&mut self, comp: Rc<Component>)[src]

pub fn add_with_name(&mut self, name: String, comp: Rc<Component>)[src]

pub fn property_animation_type_for_property(&self, property_type: Type) -> Type[src]

pub fn all_types(&self) -> HashMap<String, Type>[src]

Return a hashmap with all the registered type

Trait Implementations

impl Debug for TypeRegister[src]

impl Default for TypeRegister[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.