pub enum BlockType {
}Expand description
Document structure block type markers.
LOGOS uses markdown-style ## Header syntax to delimit different
sections of a program or proof document.
Variants§
SuspectedTypo
An unknown ## Header a small edit distance from a CONSEQUENTIAL
code header (## Mian → Main) — the parser fails loudly with the
suggestion instead of silently treating the whole block as prose.
Theorem
## Theorem - Declares a proposition to be proved.
Main
## Main - Program entry point for imperative code.
Definition
## Definition - Introduces new terminology or type definitions.
Define
## Define - Mints a vernacular-logic predicate definition that the
prover unfolds (Rung 0a). Distinct from ## Definition (type defs).
Axiom
## Axiom - Declares a named first-order axiom in formal notation
(## Axiom name: for all a b, Cong(a,b,b,a).). Its body is parsed by the
formal-formula parser and registered as a shared premise for later theorems —
the seam for an axiomatic base like Tarski geometry.
Theory
## Theory - Names a development that groups the ## Axioms and ## Theorems
that follow it (## Theory Tarski).
Proof
## Proof - Contains proof steps for a theorem.
Example
## Example - Illustrative examples.
Logic
## Logic - Direct logical notation input.
Note
## Note - Explanatory documentation.
Function
## To - Function definition block.
TypeDef
Inline type definition: ## A Point has: or ## A Color is one of:.
Policy
## Policy - Security policy rule definitions.
Requires
## Requires - External crate dependency declarations.
Hardware
## Hardware - Signal declarations for hardware verification.
Property
## Property - Temporal assertions for hardware verification.
No
## No - Optimization annotation (followed by Memo, TCO, Peephole, Borrow, or Optimize).
Tier
## Tier - Tiered-optimizer pin: ## Tier <opt> <eager|t1|t2|t3|never> overrides
the hotness tier at which that optimization runs (HOTSWAP §8).
Trait Implementations§
impl Copy for BlockType
impl Eq for BlockType
impl StructuralPartialEq for BlockType
Auto Trait Implementations§
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnsafeUnpin for BlockType
impl UnwindSafe for BlockType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.