pub struct LeanProject {
pub package_name: String,
pub toolchain: String,
pub requires_mathlib: bool,
}Expand description
Generated Lean package metadata for writing a runnable project scaffold.
Fields§
§package_name: String§toolchain: String§requires_mathlib: boolImplementations§
Source§impl LeanProject
impl LeanProject
pub fn new(package_name: impl Into<String>) -> Self
pub fn for_export(export: &LeanExport) -> Self
pub fn with_toolchain(self, toolchain: impl Into<String>) -> Self
pub fn with_mathlib(self, requires_mathlib: bool) -> Self
pub fn render_lakefile(&self) -> String
pub fn render_toolchain(&self) -> String
Trait Implementations§
Source§impl Clone for LeanProject
impl Clone for LeanProject
Source§fn clone(&self) -> LeanProject
fn clone(&self) -> LeanProject
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 LeanProject
impl Debug for LeanProject
impl Eq for LeanProject
Source§impl PartialEq for LeanProject
impl PartialEq for LeanProject
Source§fn eq(&self, other: &LeanProject) -> bool
fn eq(&self, other: &LeanProject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeanProject
Auto Trait Implementations§
impl Freeze for LeanProject
impl RefUnwindSafe for LeanProject
impl Send for LeanProject
impl Sync for LeanProject
impl Unpin for LeanProject
impl UnsafeUnpin for LeanProject
impl UnwindSafe for LeanProject
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