pub struct ReleaseProfileCheck {
pub panic_unwind: bool,
pub lto_enabled: bool,
pub opt_level_3: bool,
pub codegen_units_1: bool,
}Expand description
Results of checking a release profile configuration.
Each field indicates whether the corresponding setting is present and correct.
Fields§
§panic_unwind: boolpanic = "unwind" is set (required for quack-rs’s panic safety).
lto_enabled: boollto = true or lto = "fat" is set (recommended for binary size).
opt_level_3: boolopt-level = 3 is set (recommended for performance).
codegen_units_1: boolcodegen-units = 1 is set (recommended for optimization quality).
Implementations§
Source§impl ReleaseProfileCheck
impl ReleaseProfileCheck
Sourcepub const fn is_required_satisfied(&self) -> bool
pub const fn is_required_satisfied(&self) -> bool
Returns true if all required settings are satisfied.
Only panic = "unwind" is strictly required; the rest are best
practices.
Sourcepub const fn is_fully_optimized(&self) -> bool
pub const fn is_fully_optimized(&self) -> bool
Returns true if all recommended settings are satisfied.
Trait Implementations§
Source§impl Clone for ReleaseProfileCheck
impl Clone for ReleaseProfileCheck
Source§fn clone(&self) -> ReleaseProfileCheck
fn clone(&self) -> ReleaseProfileCheck
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 moreSource§impl Debug for ReleaseProfileCheck
impl Debug for ReleaseProfileCheck
impl Eq for ReleaseProfileCheck
Source§impl PartialEq for ReleaseProfileCheck
impl PartialEq for ReleaseProfileCheck
impl StructuralPartialEq for ReleaseProfileCheck
Auto Trait Implementations§
impl Freeze for ReleaseProfileCheck
impl RefUnwindSafe for ReleaseProfileCheck
impl Send for ReleaseProfileCheck
impl Sync for ReleaseProfileCheck
impl Unpin for ReleaseProfileCheck
impl UnsafeUnpin for ReleaseProfileCheck
impl UnwindSafe for ReleaseProfileCheck
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