use wasmer_vm::StoreId;
use crate::AsStoreMut;
impl crate::StoreObjects {
pub fn into_sys(self) -> crate::backend::sys::store::StoreObjects {
match self {
Self::Sys(s) => s,
_ => panic!("Not a `sys` store!"),
}
}
pub fn as_sys(&self) -> &crate::backend::sys::store::StoreObjects {
match self {
Self::Sys(s) => s,
_ => panic!("Not a `sys` store!"),
}
}
pub fn as_sys_mut(&mut self) -> &mut crate::backend::sys::store::StoreObjects {
match self {
Self::Sys(s) => s,
_ => panic!("Not a `sys` store!"),
}
}
}