pub struct BuiltinMethod {
pub receiver: TypeExpr,
pub name: &'static str,
pub description: &'static str,
pub signature: BuiltinSignature,
pub param_names: &'static [&'static str],
pub semantics: MethodSemantics,
}Fields§
§receiver: TypeExpr§name: &'static str§description: &'static str§signature: BuiltinSignature§param_names: &'static [&'static str]§semantics: MethodSemanticsImplementations§
Source§impl BuiltinMethod
impl BuiltinMethod
pub fn parameters(&self) -> Vec<(&'static str, &TypeExpr)>
pub fn return_type(&self) -> &TypeExpr
pub fn receiver_type(&self) -> &TypeExpr
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 moreAuto Trait Implementations§
impl Freeze for BuiltinMethod
impl RefUnwindSafe for BuiltinMethod
impl Send for BuiltinMethod
impl Sync for BuiltinMethod
impl Unpin for BuiltinMethod
impl UnsafeUnpin 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