pub struct BuiltinAssociatedFn {
pub name: &'static str,
pub params: &'static [BuiltinParam],
pub return_ty: BuiltinReturnType,
pub runtime_fn: &'static str,
}Expand description
An associated function on a built-in type (e.g., String::new).
Fields§
§name: &'static strFunction name (e.g., “new”)
params: &'static [BuiltinParam]Parameters (excluding any implicit out pointer)
return_ty: BuiltinReturnTypeReturn type
runtime_fn: &'static strRuntime function name (e.g., “String__new”)
Trait Implementations§
Source§impl Clone for BuiltinAssociatedFn
impl Clone for BuiltinAssociatedFn
Source§fn clone(&self) -> BuiltinAssociatedFn
fn clone(&self) -> BuiltinAssociatedFn
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 BuiltinAssociatedFn
impl Debug for BuiltinAssociatedFn
impl Copy for BuiltinAssociatedFn
Auto Trait Implementations§
impl Freeze for BuiltinAssociatedFn
impl RefUnwindSafe for BuiltinAssociatedFn
impl Send for BuiltinAssociatedFn
impl Sync for BuiltinAssociatedFn
impl Unpin for BuiltinAssociatedFn
impl UnsafeUnpin for BuiltinAssociatedFn
impl UnwindSafe for BuiltinAssociatedFn
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