Struct valkyrie_wit::ForeignGenerator
source · pub struct ForeignGenerator { /* private fields */ }Implementations§
source§impl ForeignGenerator
impl ForeignGenerator
pub fn new(package: &str) -> Result<Self>
sourcepub fn get_language(&self) -> &Package
pub fn get_language(&self) -> &Package
Get the language name and package infos
sourcepub fn get_package(&self) -> &World
pub fn get_package(&self) -> &World
Get the package name and world infos
pub fn make_module(&mut self, target: &str) -> Id<Interface>
pub fn make_function(&mut self, mid: Id<Interface>, f: Function)
pub fn get_module(&self, id: Id<Interface>) -> &Interface
pub fn mut_module(&mut self, id: Id<Interface>) -> &mut Interface
pub fn make_type( &mut self, mid: Id<Interface>, name: &str, kind: TypeDefKind ) -> Id<TypeDef>
Auto Trait Implementations§
impl RefUnwindSafe for ForeignGenerator
impl Send for ForeignGenerator
impl Sync for ForeignGenerator
impl Unpin for ForeignGenerator
impl UnwindSafe for ForeignGenerator
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