pub struct SegmentLayout<'a> { /* private fields */ }Implementations§
Source§impl<'src> SegmentLayout<'src>
impl<'src> SegmentLayout<'src>
pub fn new_inner<'a>(
data: &Data<'src>,
segment_info: &Segment<'src>,
data_symbols: impl Iterator<Item = (Id<SymbolRecord<'static>>, &'a SymbolRecord<'src>)>,
) -> Result<SegmentLayout<'src>>where
'src: 'a,
pub fn debug_layout( symbol_table: &SymbolMap<'_>, module_name: String, data_segments: &IdVec<SegmentLayout<'_>>, )
pub fn memory_offset(&self) -> usize
pub fn new_with_whitelist( self, indexes: &BTreeSet<Id<SymbolRecord<'static>>>, ) -> Self
pub fn data_len(&self, segment_offset: usize) -> usize
Sourcepub fn to_segment_output(
&self,
lib_base_global_id: Option<u32>,
mem_start: usize,
segment_offset: usize,
) -> (usize, DataSegmentOutput)
pub fn to_segment_output( &self, lib_base_global_id: Option<u32>, mem_start: usize, segment_offset: usize, ) -> (usize, DataSegmentOutput)
Compute data init offset and alligned segment_offset.
Trait Implementations§
Source§impl<'a> Clone for SegmentLayout<'a>
impl<'a> Clone for SegmentLayout<'a>
Source§fn clone(&self) -> SegmentLayout<'a>
fn clone(&self) -> SegmentLayout<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SegmentLayout<'a>
impl<'a> RefUnwindSafe for SegmentLayout<'a>
impl<'a> Send for SegmentLayout<'a>
impl<'a> Sync for SegmentLayout<'a>
impl<'a> Unpin for SegmentLayout<'a>
impl<'a> UnsafeUnpin for SegmentLayout<'a>
impl<'a> UnwindSafe for SegmentLayout<'a>
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