pub struct MarkupAssembly {
pub name: &'static str,
pub crate_name: &'static str,
pub xmlns_definitions: &'static [XmlnsDefinition],
pub xmlns_prefixes: &'static [XmlnsPrefix],
pub metadata: &'static [(&'static str, &'static str)],
}Expand description
What a crate states about itself for markup: the assembly name its
types are addressed by (using:Ns;assembly=FerroUI.Controls, asset
URIs) and its XML namespace definitions.
A crate declares one as a constant and registers it from its
register_types() function. A type belongs to the assembly whose
crate_name is the first segment of the module path
of the type.
Fields§
§name: &'static strThe assembly name (FerroUI.Controls).
crate_name: &'static strThe crate, as module paths spell it (ferroui_controls).
xmlns_definitions: &'static [XmlnsDefinition]§xmlns_prefixes: &'static [XmlnsPrefix]§metadata: &'static [(&'static str, &'static str)]Key/value metadata of the assembly (the AssemblyMetadata attributes
of the managed original). The markup loader reads
CREATE_SOURCE_INFO.
Implementations§
Source§impl MarkupAssembly
impl MarkupAssembly
Sourcepub const CREATE_SOURCE_INFO: &'static str = "FerroXamlCreateSourceInfo"
pub const CREATE_SOURCE_INFO: &'static str = "FerroXamlCreateSourceInfo"
The metadata key that states whether markup compiled for the
assembly records source information by default ("true"/"false").
Sourcepub const USE_COMPILED_BINDINGS_BY_DEFAULT: &'static str = "FerroUseCompiledBindingsByDefault"
pub const USE_COMPILED_BINDINGS_BY_DEFAULT: &'static str = "FerroUseCompiledBindingsByDefault"
The metadata key that states whether {Binding} in markup of the
assembly is a compiled binding by default ("True"/"False"): the
FerroUseCompiledBindingsByDefault entry the build task of upstream writes
into every assembly it compiles markup for, with the value of its
DefaultCompileBindings. The previewer of the designer reads it.
Sourcepub fn metadata_value(&self, key: &str) -> Option<&'static str>
pub fn metadata_value(&self, key: &str) -> Option<&'static str>
The value of the metadata entry key.
Sourcepub fn register(assembly: &'static MarkupAssembly)
pub fn register(assembly: &'static MarkupAssembly)
Adds an assembly to the process-wide table of assemblies. Registering an assembly again does nothing.
Sourcepub fn registered_assemblies() -> Vec<&'static MarkupAssembly>
pub fn registered_assemblies() -> Vec<&'static MarkupAssembly>
Every registered assembly, in registration order.
Sourcepub fn find(name: &str) -> Option<&'static MarkupAssembly>
pub fn find(name: &str) -> Option<&'static MarkupAssembly>
The registered assembly named name.
Sourcepub fn of_module(module_path: &str) -> Option<&'static MarkupAssembly>
pub fn of_module(module_path: &str) -> Option<&'static MarkupAssembly>
The registered assembly that declares the module module_path.
Trait Implementations§
Source§impl Debug for MarkupAssembly
impl Debug for MarkupAssembly
impl Eq for MarkupAssembly
Source§impl PartialEq for MarkupAssembly
impl PartialEq for MarkupAssembly
impl StructuralPartialEq for MarkupAssembly
Auto Trait Implementations§
impl Freeze for MarkupAssembly
impl RefUnwindSafe for MarkupAssembly
impl Send for MarkupAssembly
impl Sync for MarkupAssembly
impl Unpin for MarkupAssembly
impl UnsafeUnpin for MarkupAssembly
impl UnwindSafe for MarkupAssembly
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more