pub struct ConstSegmentInfo {
pub const_allocations: OrderedHashMap<ConcreteTypeId, ConstAllocation>,
pub const_segment_size: usize,
}
Expand description
The information about the constants used in the program.
Fields§
§const_allocations: OrderedHashMap<ConcreteTypeId, ConstAllocation>
A map between the const type and the data of the const.
const_segment_size: usize
The size of the constants segment.
Trait Implementations§
source§impl Clone for ConstSegmentInfo
impl Clone for ConstSegmentInfo
source§fn clone(&self) -> ConstSegmentInfo
fn clone(&self) -> ConstSegmentInfo
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 ConstSegmentInfo
impl Debug for ConstSegmentInfo
source§impl Default for ConstSegmentInfo
impl Default for ConstSegmentInfo
source§fn default() -> ConstSegmentInfo
fn default() -> ConstSegmentInfo
Returns the “default value” for a type. Read more
source§impl PartialEq for ConstSegmentInfo
impl PartialEq for ConstSegmentInfo
source§fn eq(&self, other: &ConstSegmentInfo) -> bool
fn eq(&self, other: &ConstSegmentInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstSegmentInfo
impl StructuralPartialEq for ConstSegmentInfo
Auto Trait Implementations§
impl RefUnwindSafe for ConstSegmentInfo
impl Send for ConstSegmentInfo
impl Sync for ConstSegmentInfo
impl Unpin for ConstSegmentInfo
impl UnwindSafe for ConstSegmentInfo
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.