pub struct CallableModel {
pub path: Option<String>,
pub resolved: Option<String>,
pub dereferenced: Option<String>,
}Expand description
A callable of a declaration: a path (Setter::set_value) or any other expression (a
closure).
Fields§
§path: Option<String>The path as written, when the callable is a path; nothing for an expression.
resolved: Option<String>The path made absolute, when the scanner resolved its head.
dereferenced: Option<String>For a closure without parameters whose body dereferences the result of a function
called without arguments (|| *Button::click_event(), the form a static field of
a routed event is declared in): the path of that function, made absolute.
Trait Implementations§
Source§impl Clone for CallableModel
impl Clone for CallableModel
Source§fn clone(&self) -> CallableModel
fn clone(&self) -> CallableModel
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 CallableModel
impl Debug for CallableModel
Source§impl Default for CallableModel
impl Default for CallableModel
Source§fn default() -> CallableModel
fn default() -> CallableModel
Returns the “default value” for a type. Read more
impl Eq for CallableModel
Source§impl PartialEq for CallableModel
impl PartialEq for CallableModel
impl StructuralPartialEq for CallableModel
Auto Trait Implementations§
impl Freeze for CallableModel
impl RefUnwindSafe for CallableModel
impl Send for CallableModel
impl Sync for CallableModel
impl Unpin for CallableModel
impl UnsafeUnpin for CallableModel
impl UnwindSafe for CallableModel
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