Registry / utility / nom-locate

nom-locate

JSON →
library5.0.0rscratesunverified

A special input type for nom to locate tokens.

# Cargo.toml [dependencies] nom_locate = "5.0.0"
INSTALL
IMPORT
SIG · NOM-LOCATE
N
nom-locate
utilityrustv5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LocatedSpan
use nom_locate::LocatedSpan;

Parses a tag using LocatedSpan to track token positions.

use nom_locate::LocatedSpan; use nom::bytes::complete::tag; fn main() { let input = LocatedSpan::new("hello world"); let result = tag::<_, _, nom::error::Error<_>>("hello")(input); println!("{:?}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nom-locate — cargo add nom-locate · libregistry