//! [`AsBuf`] trait.
/// The ability view something as a [`bytes::Buf`].
pubtraitAsBuf{/// The data type that implements [`bytes::Buf`] as which we can view self.
typeData:bytes::Buf;/// View as [`Self::Data`] that implements [`bytes::Buf`].
fnas_buf(&self)->&Self::Data;}impl<T:bytes::Buf> AsBuf forT{typeData= T;fnas_buf(&self)->&Self::Data{self}}