Struct wit_encoder::ResourceFunc
source · pub struct ResourceFunc { /* private fields */ }
Implementations§
source§impl ResourceFunc
impl ResourceFunc
pub fn method(name: impl Into<Ident>) -> Self
pub fn static_(name: impl Into<Ident>) -> Self
pub fn constructor() -> Self
pub fn name(&mut self, name: impl Into<Ident>)
pub fn params(&mut self, params: impl Into<Params>)
pub fn results(&mut self, results: impl Into<Results>)
pub fn docs(&mut self, docs: Option<impl Into<Docs>>)
Trait Implementations§
source§impl Clone for ResourceFunc
impl Clone for ResourceFunc
source§fn clone(&self) -> ResourceFunc
fn clone(&self) -> ResourceFunc
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 moresource§impl Debug for ResourceFunc
impl Debug for ResourceFunc
source§impl Hash for ResourceFunc
impl Hash for ResourceFunc
source§impl Ord for ResourceFunc
impl Ord for ResourceFunc
source§fn cmp(&self, other: &ResourceFunc) -> Ordering
fn cmp(&self, other: &ResourceFunc) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ResourceFunc
impl PartialEq for ResourceFunc
source§fn eq(&self, other: &ResourceFunc) -> bool
fn eq(&self, other: &ResourceFunc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResourceFunc
impl PartialOrd for ResourceFunc
source§fn partial_cmp(&self, other: &ResourceFunc) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceFunc) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ResourceFunc
impl StructuralPartialEq for ResourceFunc
Auto Trait Implementations§
impl Freeze for ResourceFunc
impl RefUnwindSafe for ResourceFunc
impl Send for ResourceFunc
impl Sync for ResourceFunc
impl Unpin for ResourceFunc
impl UnwindSafe for ResourceFunc
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)