pub struct Exporter<'a, W: Write> { /* private fields */ }Expand description
Streams an Env in the lean4export 3.1.0 NDJSON format. Ids are assigned on first
use and every line only refers to lines already written.
Exporting recurses once per nested subterm, which overflows the default stack on large
libraries such as Mathlib, so run it inside crate::with_big_stack.
Implementations§
Source§impl<'a, W: Write> Exporter<'a, W>
impl<'a, W: Write> Exporter<'a, W>
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for Exporter<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for Exporter<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Exporter<'a, W>where
W: Send,
impl<'a, W> Sync for Exporter<'a, W>where
W: Sync,
impl<'a, W> Unpin for Exporter<'a, W>where
W: Unpin,
impl<'a, W> UnsafeUnpin for Exporter<'a, W>where
W: UnsafeUnpin,
impl<'a, W> UnwindSafe for Exporter<'a, W>where
W: UnwindSafe,
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
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