Struct i_slint_compiler::object_tree::Document
source · pub struct Document {
pub node: Option<Document>,
pub inner_components: Vec<Rc<Component>>,
pub inner_types: Vec<Type>,
pub root_component: Rc<Component>,
pub local_registry: TypeRegister,
pub custom_fonts: Vec<(String, SyntaxToken)>,
pub exports: Exports,
}
Expand description
The full document (a complete file)
Fields§
§node: Option<Document>
§inner_components: Vec<Rc<Component>>
§inner_types: Vec<Type>
§root_component: Rc<Component>
§local_registry: TypeRegister
§custom_fonts: Vec<(String, SyntaxToken)>
A list of paths to .ttf/.ttc files that are supposed to be registered on startup for custom font use.
exports: Exports
Implementations§
source§impl Document
impl Document
pub fn from_node( node: Document, foreign_imports: Vec<ImportedTypes>, reexports: Exports, diag: &mut BuildDiagnostics, parent_registry: &Rc<RefCell<TypeRegister>> ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl Unpin for Document
impl !UnwindSafe for Document
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more