pub enum ObjectFormat {
Elf,
MachO,
Coff,
Wasm,
}Expand description
The object file format to emit.
Variants§
Elf
ELF.
MachO
Mach-O.
Coff
COFF.
Wasm
WebAssembly, which is a format for a module rather than for a machine’s object file and is in this list because the target table has two rows that emit one.
Implementations§
Source§impl ObjectFormat
impl ObjectFormat
Sourcepub const fn from_tuple(format: ObjectFormat) -> Self
pub const fn from_tuple(format: ObjectFormat) -> Self
The same format as rucc_tuple::ObjectFormat names it.
The two enumerations exist because the tuple describes forty two targets and this crate describes what the compiler emits for one, and they will stay separate for as long as that is true. This is the one place they are put side by side.
Trait Implementations§
Source§impl Clone for ObjectFormat
impl Clone for ObjectFormat
Source§fn clone(&self) -> ObjectFormat
fn clone(&self) -> ObjectFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObjectFormat
Source§impl Debug for ObjectFormat
impl Debug for ObjectFormat
impl Eq for ObjectFormat
Source§impl Hash for ObjectFormat
impl Hash for ObjectFormat
Source§impl Ord for ObjectFormat
impl Ord for ObjectFormat
Source§fn cmp(&self, other: &ObjectFormat) -> Ordering
fn cmp(&self, other: &ObjectFormat) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ObjectFormat
impl PartialEq for ObjectFormat
Source§impl PartialOrd for ObjectFormat
impl PartialOrd for ObjectFormat
impl StructuralPartialEq for ObjectFormat
Auto Trait Implementations§
impl Freeze for ObjectFormat
impl RefUnwindSafe for ObjectFormat
impl Send for ObjectFormat
impl Sync for ObjectFormat
impl Unpin for ObjectFormat
impl UnsafeUnpin for ObjectFormat
impl UnwindSafe for ObjectFormat
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