pub trait Object: AnyBoxedObject + CloneBoxedObject + PartialEqBoxedObject + PartialOrdBoxedObject + Any + Debug {
Show 15 methods
fn name(&self) -> &'static str;
fn id(&self) -> usize { ... }
fn severity(&self) -> u8 { ... }
fn is(&self, name: &str) -> bool { ... }
fn repr(&self) -> String { ... }
fn is_void(&self) -> bool { ... }
fn is_true(&self) -> bool { ... }
fn to_i64(&self) -> i64 { ... }
fn to_f64(&self) -> f64 { ... }
fn to_usize(&self) -> usize { ... }
fn to_string(&self) -> String { ... }
fn is_callable(&self, _without_arguments: bool) -> bool { ... }
fn is_consuming(&self) -> bool { ... }
fn is_nullable(&self) -> bool { ... }
fn call(
&self,
_context: &mut Context<'_, '_, '_, '_>,
_args: usize,
_nargs: Option<Dict>
) -> Result<Accept, Reject> { ... }
}
Expand description
Describes an interface to a callable object.
Required Methods
Provided Methods
fn is_callable(&self, _without_arguments: bool) -> bool
fn is_callable(&self, _without_arguments: bool) -> bool
Check whether the object is callable.
fn is_consuming(&self) -> bool
fn is_consuming(&self) -> bool
Check whether the object is consuming
fn is_nullable(&self) -> bool
fn is_nullable(&self) -> bool
Check whether the object is nullable