Struct witx::polyfill::FuncPolyfill
source · [−]pub struct FuncPolyfill {
pub new: Rc<InterfaceFunc>,
pub old: Rc<InterfaceFunc>,
pub mapped_params: Vec<ParamPolyfill>,
pub unknown_params: Vec<ParamUnknown>,
pub mapped_results: Vec<ParamPolyfill>,
pub unknown_results: Vec<ParamUnknown>,
}
Fields
new: Rc<InterfaceFunc>
old: Rc<InterfaceFunc>
mapped_params: Vec<ParamPolyfill>
unknown_params: Vec<ParamUnknown>
mapped_results: Vec<ParamPolyfill>
unknown_results: Vec<ParamUnknown>
Implementations
sourceimpl FuncPolyfill
impl FuncPolyfill
pub fn new(new: Rc<InterfaceFunc>, old: Rc<InterfaceFunc>) -> FuncPolyfill
pub fn full_compat(&self) -> bool
pub fn type_polyfills(&self) -> HashSet<TypePolyfill>
Trait Implementations
sourceimpl Clone for FuncPolyfill
impl Clone for FuncPolyfill
sourcefn clone(&self) -> FuncPolyfill
fn clone(&self) -> FuncPolyfill
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 FuncPolyfill
impl Debug for FuncPolyfill
sourceimpl Documentation for FuncPolyfill
impl Documentation for FuncPolyfill
sourceimpl Hash for FuncPolyfill
impl Hash for FuncPolyfill
sourceimpl PartialEq<FuncPolyfill> for FuncPolyfill
impl PartialEq<FuncPolyfill> for FuncPolyfill
sourcefn eq(&self, other: &FuncPolyfill) -> bool
fn eq(&self, other: &FuncPolyfill) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FuncPolyfill) -> bool
fn ne(&self, other: &FuncPolyfill) -> bool
This method tests for !=
.
impl Eq for FuncPolyfill
impl StructuralEq for FuncPolyfill
impl StructuralPartialEq for FuncPolyfill
Auto Trait Implementations
impl RefUnwindSafe for FuncPolyfill
impl !Send for FuncPolyfill
impl !Sync for FuncPolyfill
impl Unpin for FuncPolyfill
impl UnwindSafe for FuncPolyfill
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