Struct debris_llir::objects::obj_struct::Struct
source · pub struct Struct {
pub ident: Ident,
pub fields: IndexMap<Ident, ClassRef, BuildHasherDefault<FxHasher>>,
pub namespace: OnceCell<ObjectProperties>,
}
Fields§
§ident: Ident
§fields: IndexMap<Ident, ClassRef, BuildHasherDefault<FxHasher>>
The fields are stored in an indexmap so that the user defined order is preserved. Uses the fast [FxHasher]
namespace: OnceCell<ObjectProperties>
Namespace is in a once cell, because the struct must be created before its members can be added
Implementations§
Trait Implementations§
source§impl PartialEq for Struct
impl PartialEq for Struct
impl Eq for Struct
impl StructuralEq for Struct
impl StructuralPartialEq for Struct
Auto Trait Implementations§
impl !RefUnwindSafe for Struct
impl !Send for Struct
impl !Sync for Struct
impl Unpin for Struct
impl !UnwindSafe for Struct
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.