MCPcopy Create free account
hub / github.com/benkay86/nom-tutorial / next

Method next

src/lib.rs:99–110  ·  view source on GitHub ↗

Returns the next line in `/proc/mounts` as a [Mount]. If there is a problem reading or parsing `/proc/mounts` returns an error. In the case of a parsing error we use [nom::Err::to_owned()] to allow the returned error to outlive `line`. See [Mounts::iter_mut()] for an analagous example using a mutable iterator.

(&mut self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

parse_lineFunction · 0.85

Tested by

no test coverage detected