pub struct FunctionModel {
pub name: String,
pub receiver: bool,
pub parameters: usize,
pub declared_by: Option<String>,
}Expand description
A public function of an inherent impl block of a type of a crate, as far as the choice
of a call form reads it (9.5.3, form B).
Fields§
§name: String§receiver: boolWhether the function takes self.
parameters: usizeThe number of parameters after self.
declared_by: Option<String>The declaration macro that writes the function (ferro_routed_event), when one does.
Trait Implementations§
Source§impl Clone for FunctionModel
impl Clone for FunctionModel
Source§fn clone(&self) -> FunctionModel
fn clone(&self) -> FunctionModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FunctionModel
impl Debug for FunctionModel
Source§impl Default for FunctionModel
impl Default for FunctionModel
Source§fn default() -> FunctionModel
fn default() -> FunctionModel
Returns the “default value” for a type. Read more
impl Eq for FunctionModel
Source§impl PartialEq for FunctionModel
impl PartialEq for FunctionModel
impl StructuralPartialEq for FunctionModel
Auto Trait Implementations§
impl Freeze for FunctionModel
impl RefUnwindSafe for FunctionModel
impl Send for FunctionModel
impl Sync for FunctionModel
impl Unpin for FunctionModel
impl UnsafeUnpin for FunctionModel
impl UnwindSafe for FunctionModel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more