Offset structure to allow tracking of the current byte.
This offers little more than abstraction over the byte
offset being tracked manually; however the strong typing
allows Offset
to be added to a Context
.
Creates a new Offset
from index 0
.
Shifts the inner offset by the provided shift value.Reducer
The newly shifted offset is then returned, for convenience.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static