pub struct LeanBracketedImportRequest {
pub declaration_names: Vec<String>,
}Expand description
Closed request for the bracketed no-extension import path.
The request is intentionally limited to declaration metadata lookups by name. It does not admit parser, elaborator, pretty-printer, extension, or arbitrary callback work because the imported compacted regions are freed before Rust receives the result.
Fields§
§declaration_names: Vec<String>Fully-qualified declaration names to inspect inside the bracket.
Implementations§
Source§impl LeanBracketedImportRequest
impl LeanBracketedImportRequest
pub fn new( declaration_names: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Trait Implementations§
Source§impl Clone for LeanBracketedImportRequest
impl Clone for LeanBracketedImportRequest
Source§fn clone(&self) -> LeanBracketedImportRequest
fn clone(&self) -> LeanBracketedImportRequest
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 LeanBracketedImportRequest
impl Debug for LeanBracketedImportRequest
Source§impl Default for LeanBracketedImportRequest
impl Default for LeanBracketedImportRequest
Source§fn default() -> LeanBracketedImportRequest
fn default() -> LeanBracketedImportRequest
Returns the “default value” for a type. Read more
impl Eq for LeanBracketedImportRequest
Source§impl<'lean> IntoLean<'lean> for LeanBracketedImportRequest
impl<'lean> IntoLean<'lean> for LeanBracketedImportRequest
Source§fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
Allocate (or scalar-box) a Lean representation of
self and return
the owned handle.Source§impl<'lean> LeanAbi<'lean> for LeanBracketedImportRequest
impl<'lean> LeanAbi<'lean> for LeanBracketedImportRequest
impl SealedAbi for LeanBracketedImportRequest
impl StructuralPartialEq for LeanBracketedImportRequest
Auto Trait Implementations§
impl Freeze for LeanBracketedImportRequest
impl RefUnwindSafe for LeanBracketedImportRequest
impl Send for LeanBracketedImportRequest
impl Sync for LeanBracketedImportRequest
impl Unpin for LeanBracketedImportRequest
impl UnsafeUnpin for LeanBracketedImportRequest
impl UnwindSafe for LeanBracketedImportRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'lean, T> DecodeCallResult<'lean> for Twhere
T: LeanAbi<'lean>,
impl<'lean, T> DecodeCallResult<'lean> for Twhere
T: LeanAbi<'lean>,
const EXPECTS_IO_RESULT: bool = false
Source§type CRepr = <T as LeanAbi<'lean>>::CRepr
type CRepr = <T as LeanAbi<'lean>>::CRepr
The C-ABI return type of the Lake-emitted function. For the pure
path this is
T::CRepr (e.g. u8 for Bool exports, *mut lean_object for String); for the IO path it is always
*mut lean_object (the lean_io_result_* wrapper).