pub struct SimpletonPackage {
pub modules: HashMap<String, SimpletonModule>,
}
Fields§
§modules: HashMap<String, SimpletonModule>
Implementations§
Source§impl SimpletonPackage
impl SimpletonPackage
pub fn new<CP>(
path: &str,
content_provider: &mut CP,
) -> Result<Self, Box<dyn Error>>where
CP: ScriptContentProvider<SimpletonModule>,
pub fn load<CP>(
&mut self,
path: &str,
content_provider: &mut CP,
) -> Result<(), Box<dyn Error>>where
CP: ScriptContentProvider<SimpletonModule>,
pub fn compile(&self) -> ScriptPackage<'static, SimpletonScriptExpression>
pub fn install_plugins(&self, registry: &mut Registry, search_paths: &[&str])
Trait Implementations§
Source§impl Clone for SimpletonPackage
impl Clone for SimpletonPackage
Source§fn clone(&self) -> SimpletonPackage
fn clone(&self) -> SimpletonPackage
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 SimpletonPackage
impl Debug for SimpletonPackage
Source§impl Default for SimpletonPackage
impl Default for SimpletonPackage
Source§fn default() -> SimpletonPackage
fn default() -> SimpletonPackage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimpletonPackage
impl<'de> Deserialize<'de> for SimpletonPackage
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
Auto Trait Implementations§
impl Freeze for SimpletonPackage
impl RefUnwindSafe for SimpletonPackage
impl Send for SimpletonPackage
impl Sync for SimpletonPackage
impl Unpin for SimpletonPackage
impl UnwindSafe for SimpletonPackage
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