pub struct Proof {
pub id: Option<String>,
pub theorem_ref: Option<String>,
pub method: Option<ProofMethod>,
pub children: Vec<Block>,
pub qed_symbol: Option<String>,
}Expand description
A proof block.
Fields§
§id: Option<String>Optional unique identifier.
theorem_ref: Option<String>Reference to the theorem being proved.
method: Option<ProofMethod>Proof method used.
children: Vec<Block>Proof content.
qed_symbol: Option<String>Custom QED symbol (defaults to standard square).
Implementations§
Source§impl Proof
impl Proof
Sourcepub fn of_theorem(self, theorem_id: impl Into<String>) -> Self
pub fn of_theorem(self, theorem_id: impl Into<String>) -> Self
Set the theorem reference.
Sourcepub fn with_method(self, method: ProofMethod) -> Self
pub fn with_method(self, method: ProofMethod) -> Self
Set the proof method.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proof
impl<'de> Deserialize<'de> for Proof
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 StructuralPartialEq for Proof
Auto Trait Implementations§
impl Freeze for Proof
impl RefUnwindSafe for Proof
impl Send for Proof
impl Sync for Proof
impl Unpin for Proof
impl UnsafeUnpin for Proof
impl UnwindSafe for Proof
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