Struct asn1rs_model::parser::Tokenizer
source · pub struct Tokenizer;
Implementations§
source§impl Tokenizer
impl Tokenizer
sourcepub fn parse(&self, asn: &str) -> Vec<Token>
pub fn parse(&self, asn: &str) -> Vec<Token>
Tokenize the given ASN.1 string. Parse the string line by line and character by character. Exclude comments as defined in 12.6.2-4 ITU-T Rec. X.680 (02/2021) Ignore single-line comments defined with “–”. Ignore multi-line comments defined with /* /. Comment terminates when a matching “/” has been found for each “/*”
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Tokenizer
impl Send for Tokenizer
impl Sync for Tokenizer
impl Unpin for Tokenizer
impl UnwindSafe for Tokenizer
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