Struct walrus::ModuleProducers
source · pub struct ModuleProducers { /* private fields */ }
Expand description
Representation of the wasm custom section producers
Implementations§
source§impl ModuleProducers
impl ModuleProducers
sourcepub fn add_language(&mut self, language: &str, version: &str)
pub fn add_language(&mut self, language: &str, version: &str)
Adds a new language
(versioned) to the producers section
sourcepub fn add_processed_by(&mut self, tool: &str, version: &str)
pub fn add_processed_by(&mut self, tool: &str, version: &str)
Adds a new processed-by
(versioned) to the producers section
Trait Implementations§
source§impl Debug for ModuleProducers
impl Debug for ModuleProducers
source§impl Default for ModuleProducers
impl Default for ModuleProducers
source§fn default() -> ModuleProducers
fn default() -> ModuleProducers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ModuleProducers
impl Send for ModuleProducers
impl Sync for ModuleProducers
impl Unpin for ModuleProducers
impl UnwindSafe for ModuleProducers
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