Trait CompilerSettingsRestrictions

Source
pub trait CompilerSettingsRestrictions:
    Copy
    + Debug
    + Sync
    + Send
    + Clone
    + Default {
    // Required method
    fn merge(self, other: Self) -> Option<Self>;
}
Expand description

Abstraction over set of restrictions for given crate::Compiler::Settings.

Required Methods§

Source

fn merge(self, other: Self) -> Option<Self>

Combines this restriction with another one. Returns None if restrictions are incompatible.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§