Struct mmb_parser::index::Index[][src]

pub struct Index<'a> { /* fields omitted */ }

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

impl<'a> Debug for Index<'a>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.