pub struct CompilationUnit {
pub public_components: Vec<PublicComponent>,
pub sub_components: TiVec<SubComponentIdx, SubComponent>,
pub used_sub_components: Vec<SubComponentIdx>,
pub globals: TiVec<GlobalIdx, GlobalComponent>,
pub popup_menu: Option<PopupMenu>,
pub has_debug_info: bool,
pub type_exports: Vec<TypeExport>,
pub translations: Option<Translations>,
}Fields§
§public_components: Vec<PublicComponent>§sub_components: TiVec<SubComponentIdx, SubComponent>Storage for all sub-components
used_sub_components: Vec<SubComponentIdx>The sub-components that are not item-tree root
globals: TiVec<GlobalIdx, GlobalComponent>§has_debug_info: bool§type_exports: Vec<TypeExport>Every name the generated module re-exports for a declared type, plus the
renamed export { Original as Alias } aliases of components. Types renamed to
resolve a same-name collision are absent: they were never public. (Global
aliases are on GlobalComponent::aliases.)
translations: Option<Translations>Available on crate feature
bundle-translations only.Implementations§
Source§impl CompilationUnit
impl CompilationUnit
pub fn needs_window_adapter(&self) -> bool
pub fn for_each_sub_components<'a>( &'a self, visitor: &mut dyn FnMut(SubComponentIdx, &'a SubComponent, &EvaluationContext<'_>), )
pub fn for_each_expression<'a>( &'a self, visitor: &mut dyn FnMut(&'a MutExpression, &EvaluationContext<'_>), )
Sourcepub fn for_each_z_order_expression<'a>(
&'a self,
visitor: &mut dyn FnMut(&'a MutExpression, &EvaluationContext<'_>),
)
pub fn for_each_z_order_expression<'a>( &'a self, visitor: &mut dyn FnMut(&'a MutExpression, &EvaluationContext<'_>), )
Visit the z-order expressions of all item tree nodes. The context passed to the visitor is the one of the item tree’s root sub-component, which is the frame the expressions are resolved in.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CompilationUnit
impl !Sync for CompilationUnit
impl !UnwindSafe for CompilationUnit
impl Freeze for CompilationUnit
impl Send for CompilationUnit
impl Unpin for CompilationUnit
impl UnsafeUnpin for CompilationUnit
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more