pub struct VnPackage {
pub files: HashMap<String, VnFile>,
}
Fields§
§files: HashMap<String, VnFile>
Implementations§
Source§impl VnPackage
impl VnPackage
pub fn new<CP>(
path: &str,
content_provider: &mut CP,
) -> Result<Self, Box<dyn Error>>where
CP: ScriptContentProvider<VnFile>,
pub fn load<CP>(
&mut self,
path: &str,
content_provider: &mut CP,
) -> Result<(), Box<dyn Error>>where
CP: ScriptContentProvider<VnFile>,
pub fn compile(self) -> VnStory
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VnPackage
impl RefUnwindSafe for VnPackage
impl Send for VnPackage
impl Sync for VnPackage
impl Unpin for VnPackage
impl UnwindSafe for VnPackage
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