pub struct MyWorldIndices {}
Available on crate feature
runtime
and crate feature component-model
and docsrs
only.Expand description
Auto-generated bindings for index of the exports of
my-world
.
This is an implementation detail of MyWorldPre
and can
be constructed if needed as well.
For more information see MyWorld
as well.
Implementations§
source§impl MyWorldIndices
impl MyWorldIndices
sourcepub fn new(component: &Component) -> Result<Self>
pub fn new(component: &Component) -> Result<Self>
Creates a new copy of MyWorldIndices
bindings which can then
be used to instantiate into a particular store.
This method may fail if the component does not have the required exports.
sourcepub fn new_instance(
store: impl AsContextMut,
instance: &Instance,
) -> Result<Self>
pub fn new_instance( store: impl AsContextMut, instance: &Instance, ) -> Result<Self>
Creates a new instance of MyWorldIndices
from an
instantiated component.
This method of creating a MyWorld
will perform string
lookups for all exports when this method is called. This
will only succeed if the provided instance matches the
requirements of MyWorld
.
Trait Implementations§
source§impl Clone for MyWorldIndices
impl Clone for MyWorldIndices
source§fn clone(&self) -> MyWorldIndices
fn clone(&self) -> MyWorldIndices
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 moreAuto Trait Implementations§
impl Freeze for MyWorldIndices
impl RefUnwindSafe for MyWorldIndices
impl Send for MyWorldIndices
impl Sync for MyWorldIndices
impl Unpin for MyWorldIndices
impl UnwindSafe for MyWorldIndices
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)