pub enum OutputContractGeneration {
Omit,
Emit,
}Expand description
Controls whether generators emit output-contract metadata and parser helpers.
Variants§
Omit
Omit output contracts from generated code.
Emit
Emit output-contract metadata and dependency-free framing helpers.
Implementations§
Source§impl OutputContractGeneration
impl OutputContractGeneration
Sourcepub const fn is_enabled(self) -> bool
pub const fn is_enabled(self) -> bool
Return whether output contracts should be emitted.
Trait Implementations§
Source§impl Clone for OutputContractGeneration
impl Clone for OutputContractGeneration
Source§fn clone(&self) -> OutputContractGeneration
fn clone(&self) -> OutputContractGeneration
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 OutputContractGeneration
impl Debug for OutputContractGeneration
Source§impl Default for OutputContractGeneration
impl Default for OutputContractGeneration
Source§fn default() -> OutputContractGeneration
fn default() -> OutputContractGeneration
Returns the “default value” for a type. Read more
Source§impl PartialEq for OutputContractGeneration
impl PartialEq for OutputContractGeneration
Source§fn eq(&self, other: &OutputContractGeneration) -> bool
fn eq(&self, other: &OutputContractGeneration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OutputContractGeneration
impl Eq for OutputContractGeneration
impl StructuralPartialEq for OutputContractGeneration
Auto Trait Implementations§
impl Freeze for OutputContractGeneration
impl RefUnwindSafe for OutputContractGeneration
impl Send for OutputContractGeneration
impl Sync for OutputContractGeneration
impl Unpin for OutputContractGeneration
impl UnsafeUnpin for OutputContractGeneration
impl UnwindSafe for OutputContractGeneration
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