pub enum RustParser {}Expand description
Rust Parser core entry point
Implementations§
Source§impl RustParser
impl RustParser
Sourcepub fn get_ber_tlv_parser(file: &str) -> BerTlv<'_>
pub fn get_ber_tlv_parser(file: &str) -> BerTlv<'_>
Get BER-TLV Parser object
§Example
use rust_parser::RustParser;
use std::fs::File;
match File::open("data1.ber".to_string()) {
Ok(file) => {
RustParser::get_ber_tlv_parser(&file);
assert!(true);
}
Err(e) => println!("{}", e),
}
Sourcepub fn get_kdump_parser(file: &str) -> Kdump<'_>
pub fn get_kdump_parser(file: &str) -> Kdump<'_>
Get KDUMP Parser object
§Example
use rust_parser::RustParser;
use std::fs::File;
match File::open("vmcore".to_string()) {
Ok(file) => {
RustParser::get_kdump_parser(&file);
assert!(true);
}
Err(e) => println!("{}", e),
}
Auto Trait Implementations§
impl Freeze for RustParser
impl RefUnwindSafe for RustParser
impl Send for RustParser
impl Sync for RustParser
impl Unpin for RustParser
impl UnsafeUnpin for RustParser
impl UnwindSafe for RustParser
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