pub struct ParameterModel {
pub name: Option<String>,
pub type_: RustType,
pub attributes: Vec<AttributeModel>,
}Expand description
A parameter of a constructor, a method, an indexer or an event handler.
Fields§
§name: Option<String>The name, for a constructor that names its parameters.
type_: RustType§attributes: Vec<AttributeModel>Trait Implementations§
Source§impl Clone for ParameterModel
impl Clone for ParameterModel
Source§fn clone(&self) -> ParameterModel
fn clone(&self) -> ParameterModel
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 ParameterModel
impl Debug for ParameterModel
Source§impl Default for ParameterModel
impl Default for ParameterModel
Source§fn default() -> ParameterModel
fn default() -> ParameterModel
Returns the “default value” for a type. Read more
impl Eq for ParameterModel
Source§impl PartialEq for ParameterModel
impl PartialEq for ParameterModel
impl StructuralPartialEq for ParameterModel
Auto Trait Implementations§
impl Freeze for ParameterModel
impl RefUnwindSafe for ParameterModel
impl Send for ParameterModel
impl Sync for ParameterModel
impl Unpin for ParameterModel
impl UnsafeUnpin for ParameterModel
impl UnwindSafe for ParameterModel
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