pub struct Project { /* private fields */ }Implementations§
Source§impl Project
impl Project
pub fn root_of(file: &Path) -> PathBuf
pub fn open(root: &Path) -> Result<Project, Diagnostic>
pub fn root(&self) -> &Path
pub fn has_project_file(&self) -> bool
pub fn files(&self) -> impl Iterator<Item = &Path>
pub fn relative(&self, file: &Path) -> PathBuf
pub fn check(&self) -> Vec<Diagnostic>
pub fn scene(&self, file: &Path) -> Result<Scene, Vec<Diagnostic>>
pub fn scene_with( &self, file: &Path, overlay: BTreeMap<PathBuf, String>, ) -> Result<Scene, Vec<Diagnostic>>
pub fn check_with(&self, overlay: BTreeMap<PathBuf, String>) -> Vec<Diagnostic>
pub fn fix(&self, file: &Path) -> Result<PatchGroup, EditError>
pub fn read(&self, file: &Path) -> Result<File, Vec<Diagnostic>>
pub fn migrate(&self, file: &Path) -> Result<String, Vec<Diagnostic>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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