pub struct Exporter<'a, S: Sink> { /* private fields */ }Expand description
Streams an Env in lean4export 3.1.0 order to a Sink, NDJSON by default. Ids are
assigned on first use and every record only refers to records 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§
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Exporter<'a, S>where
S: Freeze,
impl<'a, S> RefUnwindSafe for Exporter<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Exporter<'a, S>where
S: Send,
impl<'a, S> Sync for Exporter<'a, S>where
S: Sync,
impl<'a, S> Unpin for Exporter<'a, S>where
S: Unpin,
impl<'a, S> UnsafeUnpin for Exporter<'a, S>where
S: UnsafeUnpin,
impl<'a, S> UnwindSafe for Exporter<'a, S>where
S: 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