pub struct ScriptAsset {
pub name: String,
pub source: String,
pub language: Option<String>,
}Expand description
A raw script source file.
Actual parsing / compilation is deferred to the scripting subsystem.
Fields§
§name: StringModule name.
source: StringFull source text.
language: Option<String>Optional language hint (e.g. "lua", "wren", "rhai").
Implementations§
Trait Implementations§
Source§impl Clone for ScriptAsset
impl Clone for ScriptAsset
Source§fn clone(&self) -> ScriptAsset
fn clone(&self) -> ScriptAsset
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 ScriptAsset
impl Debug for ScriptAsset
impl Asset for ScriptAsset
Auto Trait Implementations§
impl Freeze for ScriptAsset
impl RefUnwindSafe for ScriptAsset
impl Send for ScriptAsset
impl Sync for ScriptAsset
impl Unpin for ScriptAsset
impl UnsafeUnpin for ScriptAsset
impl UnwindSafe for ScriptAsset
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