Skip to main content

CrateTypeExt

Trait CrateTypeExt 

Source
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§

Source

fn can_lto(&self) -> bool

Source

fn is_linkable(&self) -> bool

Source

fn is_dynamic(&self) -> bool

Source

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.

Source

fn benefits_from_no_embed_metadata(&self) -> bool

Returns whether production of this crate type could benefit from splitting metadata into a .rmeta file.

See also TargetKind::benefits_from_no_embed_metadata.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CrateTypeExt for CrateType

Implementors§