pub struct Variable {
pub name: String,
pub size: u64,
pub align: u64,
pub place: Place,
pub binding: Binding,
pub pieces: Vec<Piece>,
}Expand description
One global variable, as the pieces of its image and what the linker is told about it.
Fields§
§name: StringIts name, as the C program spelled it. The underscore an Apple symbol carries is added when it is written down, because it is a fact about the object format and not about the variable.
size: u64How many bytes it occupies, which the pieces add up to.
align: u64What it has to be aligned to, always a power of two.
place: PlaceWhich section it goes in.
binding: BindingHow the linker sees the name.
pieces: Vec<Piece>Its image, in order.
Trait Implementations§
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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.