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

Object type name.

Provided Methods

Object ID (unique memory address)

Object severity

Check for value type name.

Object representation in Tokay code

Object as void

Object as bool

Object as i64

Object as f64

Object as usize

Object as String

Check whether the object is callable.

Check whether the object is consuming

Check whether the object is nullable

Call object with a given context, argument and named argument set.

Implementors