pub struct XamlMetadata {
pub name: String,
pub crate_name: String,
pub documents: Vec<DocumentModel>,
pub dependencies: Vec<String>,
}Expand description
The compiled markup a crate exports to its dependents (AssemblyModel, the part of
it the compiler reads today).
Fields§
§name: StringThe assembly name of the crate.
crate_name: StringThe name of the crate, as Rust paths spell it.
documents: Vec<DocumentModel>The compiled documents, in the order of the compilation.
dependencies: Vec<String>The .xamlmeta files of the crates this crate includes documents of, relative to
the directory of this file or absolute (the files of a build are in the OUT_DIR
of each crate).
Implementations§
Source§impl XamlMetadata
impl XamlMetadata
Sourcepub fn parse(text: &str) -> Result<XamlMetadata, String>
pub fn parse(text: &str) -> Result<XamlMetadata, String>
Reads the model from the text of a .xamlmeta file.
Sourcepub fn read(path: impl AsRef<Path>) -> Result<Vec<XamlMetadata>, String>
pub fn read(path: impl AsRef<Path>) -> Result<Vec<XamlMetadata>, String>
Reads the .xamlmeta file path and, transitively, the files of its
dependencies: every crate whose documents the compiler may reach through it
(DEP_* metadata exists only for direct dependencies, 9.6.3). Each assembly is
listed once, path first.
Trait Implementations§
Source§impl Clone for XamlMetadata
impl Clone for XamlMetadata
Source§fn clone(&self) -> XamlMetadata
fn clone(&self) -> XamlMetadata
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 moreSource§impl Debug for XamlMetadata
impl Debug for XamlMetadata
impl Eq for XamlMetadata
Source§impl PartialEq for XamlMetadata
impl PartialEq for XamlMetadata
impl StructuralPartialEq for XamlMetadata
Auto Trait Implementations§
impl Freeze for XamlMetadata
impl RefUnwindSafe for XamlMetadata
impl Send for XamlMetadata
impl Sync for XamlMetadata
impl Unpin for XamlMetadata
impl UnsafeUnpin for XamlMetadata
impl UnwindSafe for XamlMetadata
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