pub struct GlobalProperties {
pub linkage: Linkage,
pub visibility: u8,
pub dll_storage: u8,
pub unnamed_addr: bool,
pub section: Option<String>,
pub alignment: u64,
}Expand description
What the module states of a function or a global variable beyond its type: how it links, and the other properties
of its MODULE_CODE_FUNCTION or MODULE_CODE_GLOBALVAR record.
Fields§
§linkage: LinkageHow it links.
visibility: u8Its visibility: 0 default, 1 hidden, 2 protected.
dll_storage: u8Its DLL storage class: 0 default, 1 dllimport, 2 dllexport.
unnamed_addr: boolIts address is not significant (unnamed_addr).
section: Option<String>The section it is placed in, where the record names one.
alignment: u64Its alignment in bytes; 0 where it states none.
Trait Implementations§
Source§impl Clone for GlobalProperties
impl Clone for GlobalProperties
Source§impl Debug for GlobalProperties
impl Debug for GlobalProperties
Source§impl Default for GlobalProperties
impl Default for GlobalProperties
impl Eq for GlobalProperties
Source§impl PartialEq for GlobalProperties
impl PartialEq for GlobalProperties
impl StructuralPartialEq for GlobalProperties
Auto Trait Implementations§
impl Forget for GlobalProperties
impl Freeze for GlobalProperties
impl RefUnwindSafe for GlobalProperties
impl Send for GlobalProperties
impl Sync for GlobalProperties
impl Unpin for GlobalProperties
impl UnsafeUnpin for GlobalProperties
impl UnwindSafe for GlobalProperties
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