Struct witx::polyfill::ModulePolyfill
source · [−]pub struct ModulePolyfill {
pub new: Rc<Module>,
pub old: Rc<Module>,
pub funcs: Vec<FuncPolyfill>,
}
Fields
new: Rc<Module>
old: Rc<Module>
funcs: Vec<FuncPolyfill>
Implementations
sourceimpl ModulePolyfill
impl ModulePolyfill
pub fn new(new: Rc<Module>, old: Rc<Module>) -> Result<Self, PolyfillError>
pub fn type_polyfills(&self) -> HashSet<TypePolyfill>
Trait Implementations
sourceimpl Clone for ModulePolyfill
impl Clone for ModulePolyfill
sourcefn clone(&self) -> ModulePolyfill
fn clone(&self) -> ModulePolyfill
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModulePolyfill
impl Debug for ModulePolyfill
sourceimpl Documentation for ModulePolyfill
impl Documentation for ModulePolyfill
sourceimpl Hash for ModulePolyfill
impl Hash for ModulePolyfill
sourceimpl PartialEq<ModulePolyfill> for ModulePolyfill
impl PartialEq<ModulePolyfill> for ModulePolyfill
sourcefn eq(&self, other: &ModulePolyfill) -> bool
fn eq(&self, other: &ModulePolyfill) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModulePolyfill) -> bool
fn ne(&self, other: &ModulePolyfill) -> bool
This method tests for !=
.
impl Eq for ModulePolyfill
impl StructuralEq for ModulePolyfill
impl StructuralPartialEq for ModulePolyfill
Auto Trait Implementations
impl !RefUnwindSafe for ModulePolyfill
impl !Send for ModulePolyfill
impl !Sync for ModulePolyfill
impl Unpin for ModulePolyfill
impl !UnwindSafe for ModulePolyfill
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more