Struct mmb_parser::index::Index [−][src]
Index The index contains information about items in the proof file that are useful for printing and debugging purposes.
Implementations
impl<'a> Index<'a>[src]
pub fn root_bst_ptr(&self) -> u64[src]
Return a pointer to the root of the index binary search tree (BST)
pub fn sorts(&self) -> &[u8][src]
Return the slice of the data containing the pointers to the sort index entries
pub fn sort_pointer(&self, idx: usize) -> Option<u64>[src]
Return the pointer to the sort index entry by index number
pub fn terms(&self) -> &[u8][src]
Return the slice of the data containing the pointers to the term index entries
pub fn term_pointer(&self, idx: usize) -> Option<u64>[src]
Return the pointer to the sort index entry by index number
pub fn theorems(&self) -> &[u8][src]
Return the slice of the data containing the pointers to the theorem index entries
pub fn theorem_pointer(&self, idx: usize) -> Option<u64>[src]
Return the pointer to the theorem index entry by index number
pub fn visit_sorts<V: Visitor>(&self, visitor: &mut V)[src]
Visit all sorts in the index using the supplied visitor
pub fn visit_terms<V: Visitor>(&self, visitor: &mut V)[src]
Visit all terms in the index using the supplied visitor
pub fn visit_theorems<V: Visitor>(&self, visitor: &mut V)[src]
Visit all theorems in the index using the supplied visitor
pub fn sort(&self, idx: usize) -> Result<IndexEntry<'_>, Err<ParseError<'_>>>[src]
Get the pointer to a sort index entry, and the entry data itself
pub fn term(&self, idx: usize) -> Result<IndexEntry<'_>, Err<ParseError<'_>>>[src]
Get the pointer to a term index entry, and the entry data itself
pub fn theorem(&self, idx: usize) -> Result<IndexEntry<'_>, Err<ParseError<'_>>>[src]
Get the pointer to a theorem index entry, and the entry data itself
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Index<'a>
impl<'a> Send for Index<'a>
impl<'a> Sync for Index<'a>
impl<'a> Unpin for Index<'a>
impl<'a> UnwindSafe for Index<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,