pub struct LeanDeclarationFilter {
pub include_private: bool,
pub include_generated: bool,
pub include_internal: bool,
}Expand description
Lean-side declaration-listing filter.
The default is tuned for user-facing declaration browsers: include private names because callers may be indexing the current project, but drop compiler-generated and internal-detail names that usually swamp the list with implementation artifacts.
Fields§
§include_private: boolKeep names Lean marks as private.
include_generated: boolKeep generated names with numeric components.
include_internal: boolKeep Lean internal-detail names such as _, match_, proof_,
and similar implementation artifacts.
Trait Implementations§
Source§impl Clone for LeanDeclarationFilter
impl Clone for LeanDeclarationFilter
Source§fn clone(&self) -> LeanDeclarationFilter
fn clone(&self) -> LeanDeclarationFilter
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 LeanDeclarationFilter
impl Debug for LeanDeclarationFilter
Source§impl Default for LeanDeclarationFilter
impl Default for LeanDeclarationFilter
Source§impl<'lean> IntoLean<'lean> for LeanDeclarationFilter
impl<'lean> IntoLean<'lean> for LeanDeclarationFilter
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 LeanDeclarationFilter
impl<'lean> LeanAbi<'lean> for LeanDeclarationFilter
Source§type CRepr = *mut lean_object
type CRepr = *mut lean_object
The C-ABI type Lake emits for this Lean type at function
signatures.
Source§impl PartialEq for LeanDeclarationFilter
impl PartialEq for LeanDeclarationFilter
Source§fn eq(&self, other: &LeanDeclarationFilter) -> bool
fn eq(&self, other: &LeanDeclarationFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'lean> TryFromLean<'lean> for LeanDeclarationFilter
impl<'lean> TryFromLean<'lean> for LeanDeclarationFilter
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 moreimpl Copy for LeanDeclarationFilter
impl Eq for LeanDeclarationFilter
impl SealedAbi for LeanDeclarationFilter
impl StructuralPartialEq for LeanDeclarationFilter
Auto Trait Implementations§
impl Freeze for LeanDeclarationFilter
impl RefUnwindSafe for LeanDeclarationFilter
impl Send for LeanDeclarationFilter
impl Sync for LeanDeclarationFilter
impl Unpin for LeanDeclarationFilter
impl UnsafeUnpin for LeanDeclarationFilter
impl UnwindSafe for LeanDeclarationFilter
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).