pub struct MethodType {
pub params: Vec<FieldType>,
pub ret: Option<FieldType>,
}
Expand description
This is a type representing a method descriptor
Fields§
§params: Vec<FieldType>
§ret: Option<FieldType>
Implementations§
Trait Implementations§
Source§impl Clone for MethodType
impl Clone for MethodType
Source§fn clone(&self) -> MethodType
fn clone(&self) -> MethodType
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 MethodType
impl Debug for MethodType
Source§impl From<MethodType> for Descriptor
impl From<MethodType> for Descriptor
Source§fn from(v: MethodType) -> Self
fn from(v: MethodType) -> Self
Creates a Signature from a MethodType
Source§impl Hash for MethodType
impl Hash for MethodType
Source§impl PartialEq for MethodType
impl PartialEq for MethodType
impl Eq for MethodType
impl StructuralPartialEq for MethodType
Auto Trait Implementations§
impl Freeze for MethodType
impl RefUnwindSafe for MethodType
impl Send for MethodType
impl Sync for MethodType
impl Unpin for MethodType
impl UnwindSafe for MethodType
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