pub struct ConstAllocation {
pub offset: CodeOffset,
pub values: Vec<BigInt>,
}
Expand description
The data of a single const in the const segment.
Fields§
§offset: CodeOffset
The offset of the const within the constants segment.
values: Vec<BigInt>
The values to be stored in the const segment.
Trait Implementations§
source§impl Clone for ConstAllocation
impl Clone for ConstAllocation
source§fn clone(&self) -> ConstAllocation
fn clone(&self) -> ConstAllocation
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 ConstAllocation
impl Debug for ConstAllocation
source§impl Default for ConstAllocation
impl Default for ConstAllocation
source§fn default() -> ConstAllocation
fn default() -> ConstAllocation
Returns the “default value” for a type. Read more
source§impl PartialEq for ConstAllocation
impl PartialEq for ConstAllocation
source§fn eq(&self, other: &ConstAllocation) -> bool
fn eq(&self, other: &ConstAllocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstAllocation
impl StructuralPartialEq for ConstAllocation
Auto Trait Implementations§
impl RefUnwindSafe for ConstAllocation
impl Send for ConstAllocation
impl Sync for ConstAllocation
impl Unpin for ConstAllocation
impl UnwindSafe for ConstAllocation
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.