Struct cranelift_codegen::ir::constant::ConstantPoolEntry [−][src]
pub struct ConstantPoolEntry { /* fields omitted */ }
Expand description
Inner type for storing data and offset together in the constant pool. The offset is optional
because it must be set relative to the function code size (i.e. constants are emitted after the
function body); because the function is not yet compiled when constants are inserted,
set_offset
must be called once a constant’s offset
from the beginning of the function is known (see
relaxation
in relaxation.rs
).
Implementations
impl ConstantPoolEntry
[src]
impl ConstantPoolEntry
[src]pub fn set_offset(&mut self, offset: ConstantOffset)
[src]
pub fn set_offset(&mut self, offset: ConstantOffset)
[src]Assign a new offset to the constant at this entry.
Trait Implementations
impl Clone for ConstantPoolEntry
[src]
impl Clone for ConstantPoolEntry
[src]fn clone(&self) -> ConstantPoolEntry
[src]
fn clone(&self) -> ConstantPoolEntry
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConstantPoolEntry
impl Send for ConstantPoolEntry
impl Sync for ConstantPoolEntry
impl Unpin for ConstantPoolEntry
impl UnwindSafe for ConstantPoolEntry
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more