pub struct IdentifierParser(/* private fields */);Expand description
A parser and factory API for identifiers intended for no_std environments.
Prefer using Identifier::from_str and .parse() methods if you are using std.
Implementations§
Source§impl IdentifierParser
impl IdentifierParser
Sourcepub fn init() -> Self
pub fn init() -> Self
Initialize the parser. This internally compiles a regex, so don’t call this in a hot path.
Prefer using FromStr impl for Identifier if you are using std.
pub fn parse(&self, s: &str) -> Result<Identifier, IdentifierError>
Auto Trait Implementations§
impl Freeze for IdentifierParser
impl RefUnwindSafe for IdentifierParser
impl Send for IdentifierParser
impl Sync for IdentifierParser
impl Unpin for IdentifierParser
impl UnwindSafe for IdentifierParser
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