Type Alias SymbolTable

Source
pub type SymbolTable<'data, E> = ParsingTable<'data, E, Symbol>;

Aliased Type§

struct SymbolTable<'data, E> { /* private fields */ }

Implementations

Source§

impl<'data, E: EndianParse, P: ParseAt> ParsingTable<'data, E, P>

Source

pub fn new(endian: E, class: Class, data: &'data [u8]) -> Self

Source

pub fn iter(&self) -> ParsingIterator<'data, E, P>

Get a lazy-parsing iterator for the table’s bytes

Source

pub fn len(&self) -> usize

Returns the number of elements of type P in the table.

Source

pub fn is_empty(&self) -> bool

Returns whether the table is empty (contains zero elements).

Source

pub fn get(&self, index: usize) -> Result<P, ParseError>

Parse the element at index in the table.

Trait Implementations

Source§

impl<'data, E: Clone + EndianParse, P: Clone + ParseAt> Clone for ParsingTable<'data, E, P>

Source§

fn clone(&self) -> ParsingTable<'data, E, P>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'data, E: Debug + EndianParse, P: Debug + ParseAt> Debug for ParsingTable<'data, E, P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'data, E: EndianParse, P: ParseAt> IntoIterator for ParsingTable<'data, E, P>

Source§

type IntoIter = ParsingIterator<'data, E, P>

Which kind of iterator are we turning this into?
Source§

type Item = P

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'data, E: Copy + EndianParse, P: Copy + ParseAt> Copy for ParsingTable<'data, E, P>