pub struct TypeObj {
pub name: RefString,
pub super_: Option<RefType>,
pub global: RefGlobal,
pub own_fields: Vec<ObjField>,
pub protos: Vec<ObjProto>,
pub bindings: HashMap<RefField, RefFun>,
pub fields: Vec<ObjField>,
}
Expand description
Common type for Type::Obj and Type::Struct
Fields
name: RefString
super_: Option<RefType>
global: RefGlobal
own_fields: Vec<ObjField>
Fields defined in this type
protos: Vec<ObjProto>
Methods in this class
bindings: HashMap<RefField, RefFun>
Functions bounds to class fields
fields: Vec<ObjField>
Fields including parents in the hierarchy
Implementations
Trait Implementations
sourceimpl IsFromStd for TypeObj
impl IsFromStd for TypeObj
sourcefn is_from_std(&self, code: &Bytecode) -> bool
fn is_from_std(&self, code: &Bytecode) -> bool
Returns true if the object comes from the standard library. Requires debug info to be present as it’s looking at file names. Read more
sourceimpl PartialEq<TypeObj> for TypeObj
impl PartialEq<TypeObj> for TypeObj
impl Eq for TypeObj
impl StructuralEq for TypeObj
impl StructuralPartialEq for TypeObj
Auto Trait Implementations
impl RefUnwindSafe for TypeObj
impl Send for TypeObj
impl Sync for TypeObj
impl Unpin for TypeObj
impl UnwindSafe for TypeObj
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.