pub struct Method { /* private fields */ }
Expand description
方法提供有关类或接口上的单个方法的信息和访问权。反射方法可以是类方法或实例方法(包括抽象方法)。当将要调用的实际参数与底层方法的形式参数匹配时,方法允许发生扩展转换,但如果发生缩小转换,则会引发 IllegalArgumentException。
Implementations§
Methods from Deref<Target = Executable>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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