pub struct LeanBracketedImportResult {
pub import_stats: LeanImportStats,
pub declarations: Vec<LeanBracketedDeclarationInfo>,
pub rejected_operations: Vec<LeanBracketedRejectedOperation>,
pub free_regions_ran: bool,
}Expand description
Result of one bracketed no-extension import query.
Every field is Rust-owned data decoded from the Lean shim’s serialized
payload. No Lean-owned Environment, Expr, Name, ConstantInfo, or
extension state escapes the loadExts := false / freeRegions bracket.
Fields§
§import_stats: LeanImportStatsImport attribution captured before the compacted regions are freed.
declarations: Vec<LeanBracketedDeclarationInfo>Per-request declaration metadata serialized inside the bracket.
rejected_operations: Vec<LeanBracketedRejectedOperation>Operations this path deliberately refuses because they require a normal full session with loaded environment extensions.
free_regions_ran: boolWhether the Lean shim reached the Environment.freeRegions cleanup
point before returning the serialized result to Rust.
Trait Implementations§
Source§impl Clone for LeanBracketedImportResult
impl Clone for LeanBracketedImportResult
Source§fn clone(&self) -> LeanBracketedImportResult
fn clone(&self) -> LeanBracketedImportResult
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 LeanBracketedImportResult
impl Debug for LeanBracketedImportResult
impl Eq for LeanBracketedImportResult
impl StructuralPartialEq for LeanBracketedImportResult
Source§impl<'lean> TryFromLean<'lean> for LeanBracketedImportResult
impl<'lean> TryFromLean<'lean> for LeanBracketedImportResult
Source§fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
Decode
obj into Self, returning a
LeanError::Host with stage
[HostStage::Conversion] if the object’s kind or payload is
outside the type’s representable range. Read moreAuto Trait Implementations§
impl Freeze for LeanBracketedImportResult
impl RefUnwindSafe for LeanBracketedImportResult
impl Send for LeanBracketedImportResult
impl Sync for LeanBracketedImportResult
impl Unpin for LeanBracketedImportResult
impl UnsafeUnpin for LeanBracketedImportResult
impl UnwindSafe for LeanBracketedImportResult
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