pub struct GlobalComponent {
pub name: SmolStr,
pub properties: TiVec<PropertyIdx, Property>,
pub functions: TiVec<FunctionIdx, Function>,
pub init_values: TiVec<PropertyIdx, Option<BindingExpression>>,
pub change_callbacks: BTreeMap<PropertyIdx, MutExpression>,
pub const_properties: TiVec<PropertyIdx, bool>,
pub public_properties: PublicProperties,
pub private_properties: PrivateProperties,
pub exported: bool,
pub aliases: Vec<SmolStr>,
pub is_builtin: bool,
pub prop_analysis: TiVec<PropertyIdx, PropertyAnalysis>,
}
Fields§
§name: SmolStr
§properties: TiVec<PropertyIdx, Property>
§functions: TiVec<FunctionIdx, Function>
§init_values: TiVec<PropertyIdx, Option<BindingExpression>>
One entry per property
change_callbacks: BTreeMap<PropertyIdx, MutExpression>
§const_properties: TiVec<PropertyIdx, bool>
§public_properties: PublicProperties
§private_properties: PrivateProperties
§exported: bool
true if we should expose the global in the generated API
aliases: Vec<SmolStr>
The extra names under which this component should be accessible if it is exported several time.
is_builtin: bool
True when this is a built-in global that does not need to be generated
prop_analysis: TiVec<PropertyIdx, PropertyAnalysis>
Analysis for each properties
Implementations§
Source§impl GlobalComponent
impl GlobalComponent
pub fn must_generate(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobalComponent
impl !RefUnwindSafe for GlobalComponent
impl !Send for GlobalComponent
impl !Sync for GlobalComponent
impl Unpin for GlobalComponent
impl !UnwindSafe for GlobalComponent
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
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