#[repr(i32)]pub enum CompileMode {
Declared = 0,
}Expand description
The compile MODE — mirrors enum chs_compile_mode in chtypes.h. Numeric
values are part of the ABI, exactly like crate::Format.
CompileMode::Declared is the only defined mode, so this enum has no
way to construct an out-of-range value through CompileRequest: a
caller that reached past this builder with a raw escape hatch and passed
one anyway would be refused by the library itself with the -2
crate::CODE_UNSUPPORTED sentinel, never guessed at. This crate exposes
no such escape hatch today.
Variants§
Declared = 0
Every setting the profile names takes the caller’s value; every
setting it does not name keeps the library’s own compile base (build
defaults plus the derived permissive type-gate list — see
spec/c-abi.md §Compile-time settings).
Implementations§
Trait Implementations§
Source§impl Clone for CompileMode
impl Clone for CompileMode
Source§fn clone(&self) -> CompileMode
fn clone(&self) -> CompileMode
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 moreimpl Copy for CompileMode
Source§impl Debug for CompileMode
impl Debug for CompileMode
Source§impl Default for CompileMode
impl Default for CompileMode
Source§fn default() -> CompileMode
fn default() -> CompileMode
Returns the “default value” for a type. Read more
impl Eq for CompileMode
Source§impl PartialEq for CompileMode
impl PartialEq for CompileMode
impl StructuralPartialEq for CompileMode
Auto Trait Implementations§
impl Freeze for CompileMode
impl RefUnwindSafe for CompileMode
impl Send for CompileMode
impl Sync for CompileMode
impl Unpin for CompileMode
impl UnsafeUnpin for CompileMode
impl UnwindSafe for CompileMode
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