pub struct SimpletonModule {
pub name: String,
pub dependencies: Vec<String>,
pub structs: Vec<SimpletonStruct>,
pub functions: Vec<SimpletonFunction>,
}
Fields§
§name: String
§dependencies: Vec<String>
§structs: Vec<SimpletonStruct>
§functions: Vec<SimpletonFunction>
Implementations§
Source§impl SimpletonModule
impl SimpletonModule
pub fn parse(content: &str) -> Result<Self, String>
pub fn compile( &self, closures: &mut Vec<SimpletonFunction>, closures_index: &mut usize, ) -> ScriptModule<'static, SimpletonScriptExpression>
Trait Implementations§
Source§impl Clone for SimpletonModule
impl Clone for SimpletonModule
Source§fn clone(&self) -> SimpletonModule
fn clone(&self) -> SimpletonModule
Returns a copy 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 SimpletonModule
impl Debug for SimpletonModule
Source§impl<'de> Deserialize<'de> for SimpletonModule
impl<'de> Deserialize<'de> for SimpletonModule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ScriptContentProvider<SimpletonModule> for SimpletonBinaryFileContentProvider
impl ScriptContentProvider<SimpletonModule> for SimpletonBinaryFileContentProvider
fn load(&mut self, _: &str) -> Result<Option<SimpletonModule>, Box<dyn Error>>
fn unpack_load( &mut self, path: &str, ) -> Result<Vec<ScriptContent<SimpletonModule>>, Box<dyn Error>>
fn sanitize_path(&self, path: &str) -> Result<String, Box<dyn Error>>
fn join_paths( &self, parent: &str, relative: &str, ) -> Result<String, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for SimpletonModule
impl RefUnwindSafe for SimpletonModule
impl Send for SimpletonModule
impl Sync for SimpletonModule
impl Unpin for SimpletonModule
impl UnwindSafe for SimpletonModule
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