[−][src]Struct foolang::objects::Object
Fields
vtable: Rc<Vtable>
datum: Datum
Methods
impl Object
[src]
pub fn as_mut_vec<T>(
&self,
fun: impl FnOnce(RefMut<Vec<Object>>) -> Result<T, Unwind>
) -> Result<T, Unwind>
[src]
&self,
fun: impl FnOnce(RefMut<Vec<Object>>) -> Result<T, Unwind>
) -> Result<T, Unwind>
pub fn as_vec<T>(
&self,
fun: impl FnOnce(Ref<Vec<Object>>) -> Result<T, Unwind>
) -> Result<T, Unwind>
[src]
&self,
fun: impl FnOnce(Ref<Vec<Object>>) -> Result<T, Unwind>
) -> Result<T, Unwind>
pub fn boolean(&self) -> bool
[src]
pub fn is_boolean(&self) -> bool
[src]
pub fn as_class_ref(&self) -> Result<&Class, Unwind>
[src]
pub fn typecheck(&self, typevt: &Rc<Vtable>) -> Eval
[src]
pub fn extend_class(&self, ext: &ClassExtension, env: &Env) -> Eval
[src]
pub fn slots(&self) -> Ref<HashMap<String, Slot>>
[src]
pub fn methods(&self) -> Ref<HashMap<String, Slot>>
[src]
pub fn closure_ref(&self) -> &Closure
[src]
pub fn compiler(&self) -> Rc<Compiler>
[src]
pub fn float(&self) -> f64
[src]
pub fn input(&self) -> Rc<Input>
[src]
pub fn instance(&self) -> Rc<Instance>
[src]
pub fn integer(&self) -> i64
[src]
pub fn as_i64(&self, ctx: &str) -> Result<i64, Unwind>
[src]
pub fn as_u8(&self, ctx: &str) -> Result<u8, Unwind>
[src]
pub fn as_u64(&self, ctx: &str) -> Result<u64, Unwind>
[src]
pub fn as_array(&self, ctx: &str) -> Result<&Array, Unwind>
[src]
pub fn as_byte_array(&self, ctx: &str) -> Result<&ByteArray, Unwind>
[src]
pub fn as_dictionary(&self, ctx: &str) -> Result<&Dictionary, Unwind>
[src]
pub fn as_record(&self, ctx: &str) -> Result<&Record, Unwind>
[src]
pub fn as_random(&self, ctx: &str) -> Result<&Random, Unwind>
[src]
pub fn output(&self) -> Rc<Output>
[src]
pub fn string_output(&self) -> Rc<StringOutput>
[src]
pub fn string(&self) -> Rc<String>
[src]
pub fn string_as_str(&self) -> &str
[src]
pub fn system(&self) -> Rc<System>
[src]
pub fn time(&self) -> &Rc<TimeInfo>
[src]
pub fn window(&self) -> &Rc<Window>
[src]
pub fn scene_node(&self) -> &Rc<SceneNode>
[src]
pub fn send(&self, selector: &str, args: &[Object], env: &Env) -> Eval
[src]
Trait Implementations
impl Clone for Object
[src]
impl Debug for Object
[src]
impl Display for Object
[src]
impl Eq for Object
[src]
impl Hash for Object
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Object> for Object
[src]
impl StructuralEq for Object
[src]
impl StructuralPartialEq for Object
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl !UnwindSafe for Object
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,