Struct tokay::builtin::BuiltinRef
source · pub struct BuiltinRef(pub &'static Builtin);
Tuple Fields§
§0: &'static Builtin
Trait Implementations§
source§impl Clone for BuiltinRef
impl Clone for BuiltinRef
source§fn clone(&self) -> BuiltinRef
fn clone(&self) -> BuiltinRef
Returns a copy of the value. Read more
1.0.0 · 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 BuiltinRef
impl Debug for BuiltinRef
source§impl Object for BuiltinRef
impl Object for BuiltinRef
source§fn is_callable(&self, _without_arguments: bool) -> bool
fn is_callable(&self, _without_arguments: bool) -> bool
Check whether the object is callable.
source§fn is_consuming(&self) -> bool
fn is_consuming(&self) -> bool
Check whether the object is consuming
source§fn call(
&self,
context: Option<&mut Context<'_, '_, '_, '_>>,
args: Vec<RefValue>,
nargs: Option<Dict>
) -> Result<Accept, Reject>
fn call( &self, context: Option<&mut Context<'_, '_, '_, '_>>, args: Vec<RefValue>, nargs: Option<Dict> ) -> Result<Accept, Reject>
Call object with optional context, arguments and named arguments set.
source§fn call_direct(
&self,
context: &mut Context<'_, '_, '_, '_>,
args: usize,
nargs: Option<Dict>
) -> Result<Accept, Reject>
fn call_direct( &self, context: &mut Context<'_, '_, '_, '_>, args: usize, nargs: Option<Dict> ) -> Result<Accept, Reject>
Directly call object with a given stack configuration. Read more
source§fn is_nullable(&self) -> bool
fn is_nullable(&self) -> bool
Check whether the object is nullable
source§fn is_mutable(&self) -> bool
fn is_mutable(&self) -> bool
Check whether the object is mutable in itself. Read more
source§fn is_hashable(&self) -> bool
fn is_hashable(&self) -> bool
Check whether the object is hashable. Read more
source§impl PartialEq for BuiltinRef
impl PartialEq for BuiltinRef
source§impl PartialOrd for BuiltinRef
impl PartialOrd for BuiltinRef
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BuiltinRef
impl Send for BuiltinRef
impl Sync for BuiltinRef
impl Unpin for BuiltinRef
impl UnwindSafe for BuiltinRef
Blanket Implementations§
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