pub struct ContractRenderConfig {
pub format: ContractFormat,
pub embed_citation: bool,
pub include_falsification: bool,
pub lean_version: Option<(u32, u32)>,
}Expand description
Configuration passed to ContractBackend::render.
Fields§
§format: ContractFormat§embed_citation: boolWhen true, the citation ID is emitted textually (in addition to
RenderedDoc.citations) via the format’s structured construct:
\xpileContract{}{} (LaTeX), @[xpile_contract ...] (Lean),
<!-- xpile-contract: ... --> (mdBook).
include_falsification: boolWhen true, every falsification_test surfaces as a \begin{remark}
(LaTeX), -- FALSIFY-<ID> block (Lean), or > **Falsification:**
block (mdBook). When false, falsification tests are absent.
lean_version: Option<(u32, u32)>(major, minor) Lean version. Only Lean 4 is supported
(lean_version: Some((4, _))); rendering with Lean 3 returns
Err(ContractBackendError::UnsupportedLeanVersion).
Trait Implementations§
Source§impl Clone for ContractRenderConfig
impl Clone for ContractRenderConfig
Source§fn clone(&self) -> ContractRenderConfig
fn clone(&self) -> ContractRenderConfig
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 ContractRenderConfig
impl Debug for ContractRenderConfig
Source§impl<'de> Deserialize<'de> for ContractRenderConfig
impl<'de> Deserialize<'de> for ContractRenderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContractRenderConfig
Source§impl PartialEq for ContractRenderConfig
impl PartialEq for ContractRenderConfig
Source§fn eq(&self, other: &ContractRenderConfig) -> bool
fn eq(&self, other: &ContractRenderConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContractRenderConfig
impl Serialize for ContractRenderConfig
impl StructuralPartialEq for ContractRenderConfig
Auto Trait Implementations§
impl Freeze for ContractRenderConfig
impl RefUnwindSafe for ContractRenderConfig
impl Send for ContractRenderConfig
impl Sync for ContractRenderConfig
impl Unpin for ContractRenderConfig
impl UnsafeUnpin for ContractRenderConfig
impl UnwindSafe for ContractRenderConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.