pub trait CrateTypeExt {
// Required methods
fn can_lto(&self) -> bool;
fn is_linkable(&self) -> bool;
fn is_dynamic(&self) -> bool;
fn requires_upstream_objects(&self) -> bool;
fn benefits_from_no_embed_metadata(&self) -> bool;
}Expand description
Compiler-specific queries on CrateType.
Required Methods§
fn can_lto(&self) -> bool
fn is_linkable(&self) -> bool
fn is_dynamic(&self) -> bool
Sourcefn requires_upstream_objects(&self) -> bool
fn requires_upstream_objects(&self) -> bool
Returns whether production of this crate type requires the object files from dependencies to be available.
See also TargetKind::requires_upstream_objects.
Sourcefn benefits_from_no_embed_metadata(&self) -> bool
fn benefits_from_no_embed_metadata(&self) -> bool
Returns whether production of this crate type could benefit from splitting metadata into a .rmeta file.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".