Trait json_number::Buffer
source · [−]pub unsafe trait Buffer: AsRef<[u8]> {
fn from_bytes(bytes: &[u8]) -> Self;
fn from_vec(bytes: Vec<u8>) -> Self;
}
Expand description
Buffer type.
Safety
The AsRef<[u8]>
implementation must return the bytes provided using
the from_bytes
and from_vec
constructor functions.