pub struct VcdParser<R: BufRead> { /* private fields */ }
Expand description
Struct implementing methods for parsing VCD data from some io::BufRead.
Implementations§
Source§impl<R: BufRead> VcdParser<R>
impl<R: BufRead> VcdParser<R>
pub fn new(reader: R) -> Self
Sourcepub fn next_token(&mut self) -> Result<Option<String>, Error>
pub fn next_token(&mut self) -> Result<Option<String>, Error>
Get the next whitespace-separated VCD file token
pub fn parse_vcd(&mut self) -> Result<Vcd>
pub fn parse_header(&mut self) -> Result<Header>
pub fn parse_header_str(&mut self, field: &str) -> Result<String>
pub fn parse_vardefs(&mut self) -> Result<VarDefs>
pub fn parse_scope(&mut self) -> Result<ScopeItem>
pub fn parse_variable(&mut self) -> Result<ScopeItem>
pub fn parse_value_change_section(&mut self) -> Result<ValueChangeSection>
pub fn parse_scalar(&self, token: String) -> Result<ValueChangeItem>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for VcdParser<R>where
R: Freeze,
impl<R> RefUnwindSafe for VcdParser<R>where
R: RefUnwindSafe,
impl<R> Send for VcdParser<R>where
R: Send,
impl<R> Sync for VcdParser<R>where
R: Sync,
impl<R> Unpin for VcdParser<R>where
R: Unpin,
impl<R> UnwindSafe for VcdParser<R>where
R: UnwindSafe,
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