pub enum BaseDirectory {
ProjectFolder,
GDExtensionFolder,
}Expand description
The base directory to use for paths.
Variants§
ProjectFolder
Uses the folder where project.godot lies as the base for relative paths. Makes all paths start with "res://".
GDExtensionFolder
Uses the folder where the .gdextension file lies as the base for relative paths. Makes all paths start with "".
Implementations§
Trait Implementations§
Source§impl Clone for BaseDirectory
impl Clone for BaseDirectory
Source§fn clone(&self) -> BaseDirectory
fn clone(&self) -> BaseDirectory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BaseDirectory
impl Debug for BaseDirectory
Source§impl Default for BaseDirectory
impl Default for BaseDirectory
Source§fn default() -> BaseDirectory
fn default() -> BaseDirectory
Returns the “default value” for a type. Read more
impl Copy for BaseDirectory
Auto Trait Implementations§
impl Freeze for BaseDirectory
impl RefUnwindSafe for BaseDirectory
impl Send for BaseDirectory
impl Sync for BaseDirectory
impl Unpin for BaseDirectory
impl UnwindSafe for BaseDirectory
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