pub struct MethodInfo {
pub name: &'static str,
pub self_type: SelfType,
pub param_names: Vec<&'static str>,
}Expand description
Information about a method signature.
Fields§
§name: &'static strThe name of the method.
self_type: SelfTypeThe type of the method’s self parameter.
param_names: Vec<&'static str>The names of the method’s parameters.
If the method uses a pattern (such as (x, y): (i32, i32)), then the
parameter name is changed to a placeholder name.
Trait Implementations§
Source§impl Clone for MethodInfo
impl Clone for MethodInfo
Source§fn clone(&self) -> MethodInfo
fn clone(&self) -> MethodInfo
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 MethodInfo
impl Debug for MethodInfo
Source§impl Hash for MethodInfo
impl Hash for MethodInfo
Source§impl PartialEq for MethodInfo
impl PartialEq for MethodInfo
impl Eq for MethodInfo
impl StructuralPartialEq for MethodInfo
Auto Trait Implementations§
impl Freeze for MethodInfo
impl RefUnwindSafe for MethodInfo
impl Send for MethodInfo
impl Sync for MethodInfo
impl Unpin for MethodInfo
impl UnwindSafe for MethodInfo
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