Struct runtime::ObjectCell
source · [−]#[repr(transparent)]pub struct ObjectCell<T> where
ObjectCell<T>: Object, { /* private fields */ }
Expand description
The universal container object for implementers of the Object trait.
Anything that implements Object should be of the form ObjectCell
Implementations
sourceimpl<T> ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> ObjectCell<T> where
ObjectCell<T>: Object,
Trait Implementations
sourceimpl<T> Clone for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> Clone for ObjectCell<T> where
ObjectCell<T>: Object,
sourceimpl<T: Debug> Debug for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T: Debug> Debug for ObjectCell<T> where
ObjectCell<T>: Object,
sourceimpl<T> Deref for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> Deref for ObjectCell<T> where
ObjectCell<T>: Object,
sourceimpl<T> DerefMut for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> DerefMut for ObjectCell<T> where
ObjectCell<T>: Object,
sourceimpl<T> LockImmutable for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> LockImmutable for ObjectCell<T> where
ObjectCell<T>: Object,
fn lock_immutable(&self)
sourceimpl Object for ObjectCell<String_>
impl Object for ObjectCell<String_>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Bool>
impl Object for ObjectCell<Bool>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Tan>
impl Object for ObjectCell<Tan>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Abs>
impl Object for ObjectCell<Abs>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Sqrt>
impl Object for ObjectCell<Sqrt>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Exp>
impl Object for ObjectCell<Exp>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Ln>
impl Object for ObjectCell<Ln>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Arcsin>
impl Object for ObjectCell<Arcsin>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Arccos>
impl Object for ObjectCell<Arccos>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Arctan>
impl Object for ObjectCell<Arctan>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Rand>
impl Object for ObjectCell<Rand>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<RandRange>
impl Object for ObjectCell<RandRange>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Int>
impl Object for ObjectCell<Int>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<RandNormal>
impl Object for ObjectCell<RandNormal>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<ShObject>
impl Object for ObjectCell<ShObject>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Sh>
impl Object for ObjectCell<Sh>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Cd>
impl Object for ObjectCell<Cd>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Open>
impl Object for ObjectCell<Open>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Os>
impl Object for ObjectCell<Os>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<LinuxDistro>
impl Object for ObjectCell<LinuxDistro>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Args>
impl Object for ObjectCell<Args>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<ScriptPath>
impl Object for ObjectCell<ScriptPath>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Which>
impl Object for ObjectCell<Which>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Float>
impl Object for ObjectCell<Float>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Exists>
impl Object for ObjectCell<Exists>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<IsDirectory>
impl Object for ObjectCell<IsDirectory>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Canonicalize>
impl Object for ObjectCell<Canonicalize>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<StripPathPrefix>
impl Object for ObjectCell<StripPathPrefix>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Hostname>
impl Object for ObjectCell<Hostname>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Devicename>
impl Object for ObjectCell<Devicename>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Realname>
impl Object for ObjectCell<Realname>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Username>
impl Object for ObjectCell<Username>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Langs>
impl Object for ObjectCell<Langs>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<DesktopEnv>
impl Object for ObjectCell<DesktopEnv>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Char>
impl Object for ObjectCell<Char>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Print>
impl Object for ObjectCell<Print>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Printr>
impl Object for ObjectCell<Printr>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Println>
impl Object for ObjectCell<Println>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Eprint>
impl Object for ObjectCell<Eprint>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Eprintr>
impl Object for ObjectCell<Eprintr>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Eprintln>
impl Object for ObjectCell<Eprintln>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Exit>
impl Object for ObjectCell<Exit>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Type>
impl Object for ObjectCell<Type>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Hash>
impl Object for ObjectCell<Hash>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Lock>
impl Object for ObjectCell<Lock>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<List_>
impl Object for ObjectCell<List_>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Clone_>
impl Object for ObjectCell<Clone_>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Assert>
impl Object for ObjectCell<Assert>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Version>
impl Object for ObjectCell<Version>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Range>
impl Object for ObjectCell<Range>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<RangeIterator>
impl Object for ObjectCell<RangeIterator>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<RangeFunc>
impl Object for ObjectCell<RangeFunc>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Sleep>
impl Object for ObjectCell<Sleep>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Stale>
impl Object for ObjectCell<Stale>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Lines>
impl Object for ObjectCell<Lines>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<LinesIterator>
impl Object for ObjectCell<LinesIterator>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Set_>
impl Object for ObjectCell<Set_>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Chars>
impl Object for ObjectCell<Chars>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<CharsIterator>
impl Object for ObjectCell<CharsIterator>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<StripPrefix>
impl Object for ObjectCell<StripPrefix>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<StripSuffix>
impl Object for ObjectCell<StripSuffix>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<MapFunc>
impl Object for ObjectCell<MapFunc>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Map>
impl Object for ObjectCell<Map>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn make_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<MapIterator>
impl Object for ObjectCell<MapIterator>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<FilterFunc>
impl Object for ObjectCell<FilterFunc>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Filter>
impl Object for ObjectCell<Filter>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn make_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<FilterIterator>
impl Object for ObjectCell<FilterIterator>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Dict_>
impl Object for ObjectCell<Dict_>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<BoolObject>
impl Object for ObjectCell<BoolObject>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<IntObject>
impl Object for ObjectCell<IntObject>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<FloatObject>
impl Object for ObjectCell<FloatObject>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<CharObject>
impl Object for ObjectCell<CharObject>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<StringObject>
impl Object for ObjectCell<StringObject>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<Function>
impl Object for ObjectCell<Function>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<List>
impl Object for ObjectCell<List>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<ListIterator>
impl Object for ObjectCell<ListIterator>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Slice>
impl Object for ObjectCell<Slice>
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<SliceIterator>
impl Object for ObjectCell<SliceIterator>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Sin>
impl Object for ObjectCell<Sin>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Tuple>
impl Object for ObjectCell<Tuple>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<UnitObject>
impl Object for ObjectCell<UnitObject>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<Set>
impl Object for ObjectCell<Set>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<SetIterator>
impl Object for ObjectCell<SetIterator>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl Object for ObjectCell<Dictionary>
impl Object for ObjectCell<Dictionary>
sourcefn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn technetium_eq(&self, other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourceimpl Object for ObjectCell<Cos>
impl Object for ObjectCell<Cos>
sourcefn technetium_type_name(&self) -> String
fn technetium_type_name(&self) -> String
A type name for an object. Read more
sourcefn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call(
&self,
args: &[ObjectRef],
_c: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given object as a function.
sourcefn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn technetium_clone(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create a deep clone of an object. This is primarily used in the clone
function in technetium Read more
sourcefn technetium_hash(&self) -> Option<u64>
fn technetium_hash(&self) -> Option<u64>
Hash an object. This is not required, so the default implementation always
returns None
. Read more
sourcefn to_string(&self) -> RuntimeResult<String>
fn to_string(&self) -> RuntimeResult<String>
Convert an object to a String.
sourcefn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn get_attr(
&self,
_attr: String,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Get an attribute of an object
sourcefn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
fn set_attr(
&self,
_attr: String,
_val: ObjectRef,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<()>
Set an attribute of an object
sourcefn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn call_method(
&self,
method: &str,
_args: &[ObjectRef],
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Call a given method of an object
sourcefn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
fn make_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<ObjectRef>
Create an iterator over an object. This is used for initializing
for
loops. Read more
sourcefn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
fn take_iter(
&self,
_context: &mut RuntimeContext<'_>
) -> RuntimeResult<Option<ObjectRef>>
Take from this object, assuming it is an iterator. This is used for
stepping through for
loops. Read more
sourcefn truthy(&self) -> bool
fn truthy(&self) -> bool
Determine whether an object is “truthy” (whether it should be treated as true when used as a boolean) Read more
sourcefn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
fn technetium_eq(&self, _other: ObjectRef) -> Option<bool>
Equal-as-value (like == in Python, or .equals() in Java)
Should return None if self
cannot reasonably determine if other
is equal or not.
Typical implementations will usually only return Some(value) if they can definitively answer,
And will quickly answer None otherwise.
This allows equality to be reflexive by calling other.technetium_eq
in case the answer is None. Read more
sourceimpl<T> OpaqueClone for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> OpaqueClone for ObjectCell<T> where
ObjectCell<T>: Object,
fn opaque_clone(&self) -> ObjectRef
sourceimpl<T> RawPointer for ObjectCell<T> where
ObjectCell<T>: Object,
impl<T> RawPointer for ObjectCell<T> where
ObjectCell<T>: Object,
fn raw_pointer(&self) -> *const ()
impl<T> StableDeref for ObjectCell<T> where
ObjectCell<T>: Object,
Auto Trait Implementations
impl<T> !RefUnwindSafe for ObjectCell<T>
impl<T> !Send for ObjectCell<T>
impl<T> !Sync for ObjectCell<T>
impl<T> Unpin for ObjectCell<T>
impl<T> !UnwindSafe for ObjectCell<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more