pub struct BuiltinMethod {
pub name: &'static str,
pub receiver_mode: ReceiverMode,
pub params: &'static [BuiltinParam],
pub return_ty: BuiltinReturnType,
pub runtime_fn: &'static str,
}Expand description
An instance method on a built-in type (e.g., s.len()).
Fields§
§name: &'static strMethod name (e.g., “len”)
receiver_mode: ReceiverModeHow the receiver is passed
params: &'static [BuiltinParam]Additional parameters after self
return_ty: BuiltinReturnTypeReturn type
runtime_fn: &'static strRuntime function name (e.g., “String__len”)
Trait Implementations§
Source§impl Clone for BuiltinMethod
impl Clone for BuiltinMethod
Source§fn clone(&self) -> BuiltinMethod
fn clone(&self) -> BuiltinMethod
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 BuiltinMethod
impl Debug for BuiltinMethod
impl Copy for BuiltinMethod
Auto Trait Implementations§
impl Freeze for BuiltinMethod
impl RefUnwindSafe for BuiltinMethod
impl Send for BuiltinMethod
impl Sync for BuiltinMethod
impl Unpin for BuiltinMethod
impl UnwindSafe for BuiltinMethod
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