pub struct CorePaths {
pub project_dir: PathBuf,
pub manifest_path: PathBuf,
pub lock_path: PathBuf,
pub mods_dir: PathBuf,
pub cache_dir: PathBuf,
pub config_path: PathBuf,
}Fields§
§project_dir: PathBuf§manifest_path: PathBuf§lock_path: PathBuf§mods_dir: PathBuf§cache_dir: PathBuf§config_path: PathBufImplementations§
Source§impl CorePaths
impl CorePaths
pub fn from_project_dir(project_dir: impl Into<PathBuf>) -> CoreResult<Self>
pub fn manifest_path(&self) -> &Path
pub fn config_path(&self) -> &Path
pub fn project_dir(&self) -> &Path
pub fn lock_path(&self) -> &Path
pub fn mods_dir(&self) -> &Path
pub fn cache_dir(&self) -> &Path
pub fn loader_libs_dir(&self) -> PathBuf
pub fn neoforge_version_dir(&self, version: &str) -> PathBuf
pub fn get_neoforge_path(&self, version: &str) -> PathBuf
pub fn is_loader_ready(&self, loader_type: &LoaderType, version: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CorePaths
impl RefUnwindSafe for CorePaths
impl Send for CorePaths
impl Sync for CorePaths
impl Unpin for CorePaths
impl UnsafeUnpin for CorePaths
impl UnwindSafe for CorePaths
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