[][src]Struct foolang::objects::Object

pub struct Object {
    pub vtable: Rc<Vtable>,
    pub datum: Datum,
}

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]

pub fn as_vec<T>(
    &self,
    fun: impl FnOnce(Ref<Vec<Object>>) -> Result<T, Unwind>
) -> Result<T, Unwind>
[src]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,