Enum debris_llir::memory::MemoryLayout
source · pub enum MemoryLayout {
Unsized,
One(ItemId),
Multiple(Vec<ItemId>),
}
Expand description
Specifies how a specific object lays out its runtime memory
Variants§
Unsized
This type has no runtime memory
One(ItemId)
This type has exactly one integer sized field
Multiple(Vec<ItemId>)
This type is spread across multiple fields
Implementations§
Trait Implementations§
source§impl Clone for MemoryLayout
impl Clone for MemoryLayout
source§fn clone(&self) -> MemoryLayout
fn clone(&self) -> MemoryLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryLayout
impl Debug for MemoryLayout
source§impl<'a> FromIterator<&'a MemoryLayout> for MemoryLayout
impl<'a> FromIterator<&'a MemoryLayout> for MemoryLayout
source§fn from_iter<T: IntoIterator<Item = &'a MemoryLayout>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = &'a MemoryLayout>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl PartialEq for MemoryLayout
impl PartialEq for MemoryLayout
source§fn eq(&self, other: &MemoryLayout) -> bool
fn eq(&self, other: &MemoryLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MemoryLayout
impl StructuralEq for MemoryLayout
impl StructuralPartialEq for MemoryLayout
Auto Trait Implementations§
impl RefUnwindSafe for MemoryLayout
impl Send for MemoryLayout
impl Sync for MemoryLayout
impl Unpin for MemoryLayout
impl UnwindSafe for MemoryLayout
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.