pub struct Project {
pub root: PathBuf,
pub files: Vec<SourceFile>,
pub generated: usize,
pub dependencies: Vec<Dependency>,
pub aliases: Vec<Alias>,
pub model: ModelSource,
pub notes: Vec<String>,
}Expand description
A Rojo project, indexed and ready for rules.
Fields§
§root: PathBuf§files: Vec<SourceFile>§generated: usizeFiles skipped because they declare themselves generated.
dependencies: Vec<Dependency>§aliases: Vec<Alias>Luau path aliases from .luaurc.
model: ModelSource§notes: Vec<String>Non-fatal problems worth telling the user about, such as a failed rojo sourcemap.
Implementations§
Source§impl Project
impl Project
Sourcepub fn load(
root: &Path,
config: &Config,
explicit_sourcemap: Option<&Path>,
generate: bool,
) -> Result<Self, Error>
pub fn load( root: &Path, config: &Config, explicit_sourcemap: Option<&Path>, generate: bool, ) -> Result<Self, Error>
Load a project: acquire the model, walk the tree, resolve run context.
Sourcepub fn context_counts(&self) -> [usize; 4]
pub fn context_counts(&self) -> [usize; 4]
Count files per run context, in the order server, client, shared, unknown.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Project
impl Freeze for Projectwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SourceFile>: Freeze,
PhantomData<Dependency>: Freeze,
PhantomData<Alias>: Freeze,
PhantomData<String>: Freeze,
impl Move for Project
impl RefUnwindSafe for Project
impl Send for Projectwhere
RawVecInner: Send,
impl Sync for Projectwhere
RawVecInner: Sync,
impl Unpin for Project
impl UnsafeUnpin for Projectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SourceFile>: UnsafeUnpin,
PhantomData<Dependency>: UnsafeUnpin,
PhantomData<Alias>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Projectwhere
RawVecInner: UnwindSafe,
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