Struct rquickjs_core::module::Declarations
source · pub struct Declarations { /* private fields */ }
Expand description
Module declarations.
Struct used in the ModuleDef
trait for declaring module exports.
Implementations§
source§impl Declarations
impl Declarations
sourcepub fn declare_static(&mut self, name: &'static CStr) -> Result<&mut Self>
pub fn declare_static(&mut self, name: &'static CStr) -> Result<&mut Self>
Define a new export in a module using a static CStr
.
This method is can be used to avoid some allocation in the case that the name is static.
Auto Trait Implementations§
impl RefUnwindSafe for Declarations
impl Send for Declarations
impl Sync for Declarations
impl Unpin for Declarations
impl UnwindSafe for Declarations
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