Struct i_slint_compiler::typeregister::TypeRegister
source · [−]pub struct TypeRegister { /* private fields */ }
Implementations
sourceimpl TypeRegister
impl TypeRegister
sourcepub fn insert_type(&mut self, t: Type)
pub fn insert_type(&mut self, t: Type)
FIXME: same as ‘add’ ?
pub fn insert_type_with_name(&mut self, t: Type, name: String)
pub fn builtin() -> Rc<RefCell<Self>>
pub fn new(parent: &Rc<RefCell<TypeRegister>>) -> Self
pub fn lookup(&self, name: &str) -> Type
pub fn lookup_element(&self, name: &str) -> Result<Type, String>
pub fn lookup_qualified<Member: AsRef<str>>(&self, qualified: &[Member]) -> Type
pub fn add(&mut self, comp: Rc<Component>)
pub fn add_with_name(&mut self, name: String, comp: Rc<Component>)
pub fn property_animation_type_for_property(&self, property_type: Type) -> Type
Trait Implementations
sourceimpl Debug for TypeRegister
impl Debug for TypeRegister
sourceimpl Default for TypeRegister
impl Default for TypeRegister
sourcefn default() -> TypeRegister
fn default() -> TypeRegister
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TypeRegister
impl !Send for TypeRegister
impl !Sync for TypeRegister
impl Unpin for TypeRegister
impl !UnwindSafe for TypeRegister
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.