pub(crate) struct Parser {
current_arc: Arc,
encoder: Encoder,
}Expand description
Const-friendly OID string parser.
Parses an OID from the dotted string representation.
Fields§
§current_arc: ArcCurrent arc in progress
encoder: EncoderBER/DER encoder
Implementations§
Source§impl Parser
impl Parser
Sourcepub(crate) const fn parse(s: &str) -> Result<Self>
pub(crate) const fn parse(s: &str) -> Result<Self>
Parse an OID from a dot-delimited string e.g. 1.2.840.113549.1.1.1
Sourcepub(crate) const fn finish(self) -> Result<ObjectIdentifier>
pub(crate) const fn finish(self) -> Result<ObjectIdentifier>
Finish parsing, returning the result
Sourceconst fn parse_bytes(self, bytes: &[u8]) -> Result<Self>
const fn parse_bytes(self, bytes: &[u8]) -> Result<Self>
Parse the remaining bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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