pub struct LeanPrelude {
pub imports: Vec<LeanImport>,
pub aliases: Vec<LeanAlias>,
}Expand description
Prelude metadata emitted ahead of theorem declarations.
Fields§
§imports: Vec<LeanImport>§aliases: Vec<LeanAlias>Implementations§
Source§impl LeanPrelude
impl LeanPrelude
pub fn new() -> LeanPrelude
pub fn with_import(self, module: impl Into<String>) -> LeanPrelude
pub fn with_alias( self, alias: impl Into<String>, target: impl Into<String>, ) -> LeanPrelude
pub fn for_obligations(obligations: &[Obligation]) -> LeanPrelude
pub fn symbol_name(&self, target: &str) -> String
Trait Implementations§
Source§impl Clone for LeanPrelude
impl Clone for LeanPrelude
Source§fn clone(&self) -> LeanPrelude
fn clone(&self) -> LeanPrelude
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 LeanPrelude
impl Debug for LeanPrelude
Source§impl Default for LeanPrelude
impl Default for LeanPrelude
Source§fn default() -> LeanPrelude
fn default() -> LeanPrelude
Returns the “default value” for a type. Read more
impl Eq for LeanPrelude
Source§impl PartialEq for LeanPrelude
impl PartialEq for LeanPrelude
Source§fn eq(&self, other: &LeanPrelude) -> bool
fn eq(&self, other: &LeanPrelude) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeanPrelude
Auto Trait Implementations§
impl Freeze for LeanPrelude
impl RefUnwindSafe for LeanPrelude
impl Send for LeanPrelude
impl Sync for LeanPrelude
impl Unpin for LeanPrelude
impl UnsafeUnpin for LeanPrelude
impl UnwindSafe for LeanPrelude
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