Sealing Slice

This crate impements a slice that can seal parts of itself off from mutability, and hand out the sealed parts as immutable references.

Crate dimensions

This is a very small crate, with only about a dozen lines of effective code.

It is still provided in a dedicated crate to clearly encapsulate the guarantees of this crate from whatever uses it, and to provide some testing and stability, as opposed to ad-hoc implementations of the same concept.

Roadmap

This crate should be versioned as 1.0 soon, given there's not much interface that can change.

Variations that were considered on the API:

The former can still be implemented with this crate stabilizing; the latter is probably too different and could need to be implemented separately.