pub enum CodegenBackendKind {
Llvm,
Cranelift,
Gcc,
Custom(String),
}
Expand description
Represents a codegen backend.
Variants§
Implementations§
Source§impl CodegenBackendKind
impl CodegenBackendKind
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Name of the codegen backend, as identified in the compiler
directory
(rustc_codegen_<name>
).
Sourcepub fn crate_name(&self) -> String
pub fn crate_name(&self) -> String
Name of the codegen backend’s crate, e.g. rustc_codegen_cranelift
.
pub fn is_llvm(&self) -> bool
pub fn is_cranelift(&self) -> bool
pub fn is_gcc(&self) -> bool
Trait Implementations§
Source§impl Clone for CodegenBackendKind
impl Clone for CodegenBackendKind
Source§fn clone(&self) -> CodegenBackendKind
fn clone(&self) -> CodegenBackendKind
Returns a duplicate 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 CodegenBackendKind
impl Debug for CodegenBackendKind
Source§impl Default for CodegenBackendKind
impl Default for CodegenBackendKind
Source§fn default() -> CodegenBackendKind
fn default() -> CodegenBackendKind
Returns the “default value” for a type. Read more
Source§impl Hash for CodegenBackendKind
impl Hash for CodegenBackendKind
Source§impl PartialEq for CodegenBackendKind
impl PartialEq for CodegenBackendKind
impl Eq for CodegenBackendKind
impl StructuralPartialEq for CodegenBackendKind
Auto Trait Implementations§
impl Freeze for CodegenBackendKind
impl RefUnwindSafe for CodegenBackendKind
impl Send for CodegenBackendKind
impl Sync for CodegenBackendKind
impl Unpin for CodegenBackendKind
impl UnwindSafe for CodegenBackendKind
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,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Llvm
: 0 bytesCranelift
: 0 bytesGcc
: 0 bytesCustom
: 24 bytes