usesuper::ByteView;/// A builder for a `ByteView` that allows mutation before freezing it.
pubstructBuilder(ByteView);implBuilder{/// Creates a new builder.
#[must_use]pubconstfnnew(inner: ByteView)->Self{Self(inner)}/// Converts the builder into a [`ByteView`], making it immutable.
#[must_use]pubfnfreeze(mutself)-> ByteView{self.0.update_prefix();self.0}}implcore::ops::Deref forBuilder{typeTarget=[u8];fnderef(&self)->&Self::Target{&self.0}}implcore::ops::DerefMut forBuilder{fnderef_mut(&mutself)->&mutSelf::Target{self.0.get_mut_slice()}}