pub struct Part {
pub name: String,
pub bytes: Vec<u8>,
pub size: u64,
pub align: u64,
pub shape: Shape,
pub relocs: Vec<Reloc>,
}Expand description
One section, as a file of assembly describes one.
Fields§
§name: StringWhat it is called, with the leading dot the source wrote.
bytes: Vec<u8>Its bytes, which are empty for a section that says how big it is and holds none of them.
size: u64How long it is. The same as the length of the bytes for every section that has any, and the
whole of what a @nobits section says about itself.
align: u64The boundary it starts on, which is the largest any directive in it asked for.
shape: ShapeThe flags and the type, which the source states and this does not work out.
relocs: Vec<Reloc>Every place in it that names something, counted from the start of the section.
Trait Implementations§
impl Eq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.