pub struct ScanOptions {
pub crate_name: String,
pub root: PathBuf,
pub assembly_name: Option<String>,
pub extern_crates: Vec<String>,
pub dependencies: Vec<AssemblyModel>,
}Expand description
What to scan.
Fields§
§crate_name: StringThe name of the crate, as Rust paths spell it (ferroui_controls).
root: PathBufThe root file of the crate (lib.rs).
assembly_name: Option<String>The assembly name, for a crate that has no MarkupAssembly.
extern_crates: Vec<String>The names of the crates the crate is built on. They are needed only where a file
imports a glob of another crate; elsewhere the use items tell.
dependencies: Vec<AssemblyModel>The models of the crates the crate is built on (the ones it depends on directly
and theirs), as their scans wrote them. With them the scan resolves what lives in
those crates: the names behind a glob import of one of their modules, the declaring
module of every type of theirs the crate names (the type texts of the model are
then canonical, ModelSet::canonical), and the names of their properties the
crate adds owners to.
Implementations§
Source§impl ScanOptions
impl ScanOptions
pub fn new(crate_name: &str, root: impl Into<PathBuf>) -> ScanOptions
Sourcepub fn with_dependencies(self, dependencies: Vec<AssemblyModel>) -> ScanOptions
pub fn with_dependencies(self, dependencies: Vec<AssemblyModel>) -> ScanOptions
The scan with the models of the crates the crate is built on.
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnsafeUnpin for ScanOptions
impl UnwindSafe for ScanOptions
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
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