pub struct LinkSection {
pub link_section: &'static str,
pub name: &'static str,
}
Expand description
Information about the manganis link section for a given platform
Fields§
§link_section: &'static str
The link section we pass to the static
name: &'static str
The name of the section we find in the binary
Implementations§
Source§impl LinkSection
impl LinkSection
Sourcepub const ALL: &'static [&'static LinkSection]
pub const ALL: &'static [&'static LinkSection]
The list of link sections for all supported platforms
Sourcepub const WASM: &'static LinkSection
pub const WASM: &'static LinkSection
Returns the link section used in linux, android, fuchsia, psp, freebsd, and wasm32
Sourcepub const MACOS: &'static LinkSection
pub const MACOS: &'static LinkSection
Returns the link section used in macOS, iOS, tvOS
Sourcepub const WINDOWS: &'static LinkSection
pub const WINDOWS: &'static LinkSection
Returns the link section used in windows
Sourcepub const ILLUMOS: &'static LinkSection
pub const ILLUMOS: &'static LinkSection
Returns the link section used in illumos
Sourcepub const CURRENT: &'static LinkSection = { { Self::WASM } }
pub const CURRENT: &'static LinkSection = { { Self::WASM } }
The link section used on the current platform
Trait Implementations§
Source§impl Clone for LinkSection
impl Clone for LinkSection
Source§fn clone(&self) -> LinkSection
fn clone(&self) -> LinkSection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinkSection
impl Debug for LinkSection
impl Copy for LinkSection
Auto Trait Implementations§
impl Freeze for LinkSection
impl RefUnwindSafe for LinkSection
impl Send for LinkSection
impl Sync for LinkSection
impl Unpin for LinkSection
impl UnwindSafe for LinkSection
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