pub struct LeanBackend;Expand description
The Lean backend
Trait Implementations§
Source§impl Backend for LeanBackend
impl Backend for LeanBackend
Source§type Printer = LeanPrinter
type Printer = LeanPrinter
The printer type used by this backend.
Source§fn module_path(&self, module: &Module) -> Utf8PathBuf
fn module_path(&self, module: &Module) -> Utf8PathBuf
Compute the relative filesystem path where a given module should be written.
Source§fn resugaring_phases() -> Vec<Box<dyn Resugaring>>
fn resugaring_phases() -> Vec<Box<dyn Resugaring>>
A list of resugaring phases.
Source§fn items_to_module(&self, items: Vec<Item>) -> Vec<Module>
fn items_to_module(&self, items: Vec<Item>) -> Vec<Module>
Group a flat list of items into modules.
Source§fn modules_to_files(
&self,
modules: Vec<Module>,
printer: Self::Printer,
) -> Vec<File>
fn modules_to_files( &self, modules: Vec<Module>, printer: Self::Printer, ) -> Vec<File>
Print a list of modules into files
Auto Trait Implementations§
impl Freeze for LeanBackend
impl RefUnwindSafe for LeanBackend
impl Send for LeanBackend
impl Sync for LeanBackend
impl Unpin for LeanBackend
impl UnsafeUnpin for LeanBackend
impl UnwindSafe for LeanBackend
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more