#[repr(transparent)]pub(crate) struct BytesRef([u8]);Expand description
Byte slice newtype which respects the Length::MAX limit.
Tuple Fields§
§0: [u8]Implementations§
Source§impl BytesRef
impl BytesRef
Trait Implementations§
Source§impl AsRef<BytesRef> for BytesOwned
impl AsRef<BytesRef> for BytesOwned
Source§impl AsRef<BytesRef> for StringOwned
impl AsRef<BytesRef> for StringOwned
Source§impl Borrow<BytesRef> for BytesOwned
impl Borrow<BytesRef> for BytesOwned
Source§impl<'a> DecodeValue<'a> for &'a BytesRef
impl<'a> DecodeValue<'a> for &'a BytesRef
Source§impl EncodeValue for BytesRef
impl EncodeValue for BytesRef
impl Eq for BytesRef
Source§impl From<&BytesRef> for BytesOwned
impl From<&BytesRef> for BytesOwned
Source§fn from(bytes: &BytesRef) -> BytesOwned
fn from(bytes: &BytesRef) -> BytesOwned
Converts to this type from the input type.
Source§impl PartialOrd for BytesRef
impl PartialOrd for BytesRef
impl StructuralPartialEq for BytesRef
Source§impl ToOwned for BytesRef
impl ToOwned for BytesRef
Source§type Owned = BytesOwned
type Owned = BytesOwned
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> BytesOwned
fn to_owned(&self) -> BytesOwned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more