pub struct EnvironmentView<'a> { /* private fields */ }Expand description
A read-only view of the environment with aggregated queries.
Implementations§
Source§impl<'a> EnvironmentView<'a>
impl<'a> EnvironmentView<'a>
Sourcepub fn new(env: &'a Environment) -> Self
pub fn new(env: &'a Environment) -> Self
Create a view over an environment.
Sourcepub fn axiom_names(&self) -> Vec<&Name>
pub fn axiom_names(&self) -> Vec<&Name>
Get all axiom names.
Sourcepub fn inductive_names(&self) -> Vec<&Name>
pub fn inductive_names(&self) -> Vec<&Name>
Get all inductive type names.
Sourcepub fn constructor_names(&self) -> Vec<&Name>
pub fn constructor_names(&self) -> Vec<&Name>
Get all constructor names.
Sourcepub fn definition_names(&self) -> Vec<&Name>
pub fn definition_names(&self) -> Vec<&Name>
Get all definition names.
Sourcepub fn count_by_kind(&self) -> EnvKindCounts
pub fn count_by_kind(&self) -> EnvKindCounts
Count declarations by kind.
Auto Trait Implementations§
impl<'a> Freeze for EnvironmentView<'a>
impl<'a> RefUnwindSafe for EnvironmentView<'a>
impl<'a> Send for EnvironmentView<'a>
impl<'a> Sync for EnvironmentView<'a>
impl<'a> Unpin for EnvironmentView<'a>
impl<'a> UnsafeUnpin for EnvironmentView<'a>
impl<'a> UnwindSafe for EnvironmentView<'a>
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