pub struct ProjectLayout {
pub root: PathBuf,
}Expand description
Where things live inside a Rusteal project. Fixed by convention so that the
config, the CLI and the plugin agree without a single path in rusteal.toml.
Fields§
§root: PathBufThe directory holding the .uproject.
Implementations§
Source§impl ProjectLayout
impl ProjectLayout
pub fn new(root: &Path) -> Self
Sourcepub fn rust_workspace(&self) -> PathBuf
pub fn rust_workspace(&self) -> PathBuf
Cargo workspace with the game crate(s) and the bindings.
Sourcepub fn bindings_crate(&self) -> PathBuf
pub fn bindings_crate(&self) -> PathBuf
The generated bindings crate.
Sourcepub fn cpp_generated(&self) -> PathBuf
pub fn cpp_generated(&self) -> PathBuf
The generated C++ wrappers, compiled into the Rusteal plugin.
Sourcepub fn uht_json(&self) -> PathBuf
pub fn uht_json(&self) -> PathBuf
The reflection JSON the codegen reads: build output, not versioned.
Sourcepub fn config_file(&self) -> PathBuf
pub fn config_file(&self) -> PathBuf
The project’s rusteal.toml.
Auto Trait Implementations§
impl Freeze for ProjectLayout
impl RefUnwindSafe for ProjectLayout
impl Send for ProjectLayout
impl Sync for ProjectLayout
impl Unpin for ProjectLayout
impl UnsafeUnpin for ProjectLayout
impl UnwindSafe for ProjectLayout
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