pub struct InterfaceMethod {
pub name: String,
pub params: Vec<(String, IrType)>,
pub return_type: IrType,
}Expand description
An interface method signature.
Fields§
§name: String§params: Vec<(String, IrType)>§return_type: IrTypeTrait 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 (const: unstable) · 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<'de> Deserialize<'de> for InterfaceMethod
impl<'de> Deserialize<'de> for InterfaceMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InterfaceMethod
Source§impl PartialEq for InterfaceMethod
impl PartialEq for InterfaceMethod
Source§fn eq(&self, other: &InterfaceMethod) -> bool
fn eq(&self, other: &InterfaceMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InterfaceMethod
impl Serialize 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