}
/// Read a *non-ZST* scalar
+ ///
+ /// zsts can't be read out of two reasons:
+ /// * byteorder cannot work with zero element buffers
+ /// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
+ /// being valid for ZSTs
pub fn read_scalar(
&self,
cx: &impl HasDataLayout,
}
/// Write a *non-ZST* scalar
+ ///
+ /// zsts can't be read out of two reasons:
+ /// * byteorder cannot work with zero element buffers
+ /// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
+ /// being valid for ZSTs
pub fn write_scalar(
&mut self,
cx: &impl HasDataLayout,