pub enum ClassConstructor {
Parameterless(&'static str),
ServiceProvider(&'static str),
}Expand description
The public constructor of a class that the loader table of its document
creates the class with (XamlCompilerTaskExecutor: a public parameterless
constructor, else a public constructor whose single parameter is the
service provider). The name is the associated function of the class.
[generate_class_file] picks it as upstream’s compiler does unless its
caller states it.
Variants§
Parameterless(&'static str)
new T(): a function without parameters.
ServiceProvider(&'static str)
new T(CreateRootServiceProviderV3(serviceProvider)): a function that takes
Option<Rc<dyn IServiceProvider>>.
Trait Implementations§
Source§impl Clone for ClassConstructor
impl Clone for ClassConstructor
Source§fn clone(&self) -> ClassConstructor
fn clone(&self) -> ClassConstructor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClassConstructor
Source§impl Debug for ClassConstructor
impl Debug for ClassConstructor
impl Eq for ClassConstructor
Source§impl PartialEq for ClassConstructor
impl PartialEq for ClassConstructor
impl StructuralPartialEq for ClassConstructor
Auto Trait Implementations§
impl Freeze for ClassConstructor
impl RefUnwindSafe for ClassConstructor
impl Send for ClassConstructor
impl Sync for ClassConstructor
impl Unpin for ClassConstructor
impl UnsafeUnpin for ClassConstructor
impl UnwindSafe for ClassConstructor
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more