pub enum Libc {
Glibc,
Musl,
Lamina,
}Expand description
The C library an environment links.
Variants§
Glibc
Musl
Lamina
Lamina’s own C library. The name is reserved and the plumbing is in place; no
implementation exists yet, so Libc::is_implemented answers false for it.
Implementations§
Source§impl Libc
impl Libc
Sourcepub const fn triple_component(self) -> &'static str
pub const fn triple_component(self) -> &'static str
Component of a cross-toolchain triple that names this C library.
Sourcepub const fn is_implemented(self) -> bool
pub const fn is_implemented(self) -> bool
Whether lamina has an implementation of this C library to link a program against.
false is a promise that the link refuses and names the library, rather than
taking another C library’s interpreter, start-up objects and symbols instead.
Why this C library cannot be linked, for a diagnostic, or None when it can.
Trait Implementations§
impl Copy for Libc
impl Eq for Libc
impl StructuralPartialEq for Libc
Auto Trait Implementations§
impl Freeze for Libc
impl RefUnwindSafe for Libc
impl Send for Libc
impl Sync for Libc
impl Unpin for Libc
impl UnsafeUnpin for Libc
impl UnwindSafe for Libc
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