pub struct TypingRule {
pub name: String,
pub premises: Vec<String>,
pub conclusion: String,
pub side_conditions: Vec<String>,
}Expand description
A typing rule in the type system.
Fields§
§name: StringName of the rule (e.g., “abs-intro”, “app-elim”)
premises: Vec<String>Premises (judgments above the line)
conclusion: StringConclusion (judgment below the line)
side_conditions: Vec<String>Side conditions
Trait Implementations§
Source§impl Clone for TypingRule
impl Clone for TypingRule
Source§fn clone(&self) -> TypingRule
fn clone(&self) -> TypingRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypingRule
impl RefUnwindSafe for TypingRule
impl Send for TypingRule
impl Sync for TypingRule
impl Unpin for TypingRule
impl UnwindSafe for TypingRule
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