pub struct BytesRef<'a, const N: usize>(/* private fields */);Expand description
Opaque bytes bounded in length, borrowing their backing storage. Decoding accepts borrowed input only; the value cannot outlive that input.
Implementations§
Trait Implementations§
impl<'a, const N: usize> Copy for BytesRef<'a, N>
Source§impl<'de: 'a, 'a, const N: usize> Deserialize<'de> for BytesRef<'a, N>
impl<'de: 'a, 'a, const N: usize> Deserialize<'de> for BytesRef<'a, N>
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a, const N: usize> Eq for BytesRef<'a, N>
impl<'a, const N: usize> StructuralPartialEq for BytesRef<'a, N>
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for BytesRef<'a, N>
impl<'a, const N: usize> RefUnwindSafe for BytesRef<'a, N>
impl<'a, const N: usize> Send for BytesRef<'a, N>
impl<'a, const N: usize> Sync for BytesRef<'a, N>
impl<'a, const N: usize> Unpin for BytesRef<'a, N>
impl<'a, const N: usize> UnsafeUnpin for BytesRef<'a, N>
impl<'a, const N: usize> UnwindSafe for BytesRef<'a, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more