pub struct InterfaceMethod {
pub name: String,
pub params: Vec<TypedParam>,
pub return_type: Option<TypeExpr>,
}Expand description
An interface method signature.
Fields§
§name: String§params: Vec<TypedParam>§return_type: Option<TypeExpr>Trait Implementations§
Source§impl Clone for InterfaceMethod
impl Clone for InterfaceMethod
Source§fn clone(&self) -> InterfaceMethod
fn clone(&self) -> InterfaceMethod
Returns a duplicate 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 InterfaceMethod
impl Debug for InterfaceMethod
Source§impl PartialEq for InterfaceMethod
impl PartialEq for InterfaceMethod
impl StructuralPartialEq for InterfaceMethod
Auto Trait Implementations§
impl Freeze for InterfaceMethod
impl RefUnwindSafe for InterfaceMethod
impl Send for InterfaceMethod
impl Sync for InterfaceMethod
impl Unpin for InterfaceMethod
impl UnsafeUnpin for InterfaceMethod
impl UnwindSafe for InterfaceMethod
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