Struct debris_backends::datapack::backend::DatapackBackend
source · pub struct DatapackBackend;
Expand description
The Datapack Backend implementation
Implementations§
source§impl DatapackBackend
impl DatapackBackend
pub const FILE_EXTENSION: &'static str = ".mcfunction"
sourcepub const FUNCTION_INTERNAL_PATH: &'static str = "__generated/"
pub const FUNCTION_INTERNAL_PATH: &'static str = "__generated/"
The directory which will contain all automatically generated minecraft files
Trait Implementations§
source§impl Backend for DatapackBackend
impl Backend for DatapackBackend
source§fn generate(&self, llir: &Llir, ctx: &CompileContext) -> Directory
fn generate(&self, llir: &Llir, ctx: &CompileContext) -> Directory
Converts the llir into a directory
source§impl Debug for DatapackBackend
impl Debug for DatapackBackend
source§impl Default for DatapackBackend
impl Default for DatapackBackend
source§fn default() -> DatapackBackend
fn default() -> DatapackBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DatapackBackend
impl Send for DatapackBackend
impl Sync for DatapackBackend
impl Unpin for DatapackBackend
impl UnwindSafe for DatapackBackend
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