pub struct BoxedArrayLike<Enc: Encoding>(/* private fields */);
Expand description
A container for boxed array-like data, e.g. Box<[u8; 4]>
or Box<generic_array::GenericArray<...>>
.
For use in the #[serde(with)]
field attribute.
Requirements:
- serializer requires the field to implement
AsRef<[u8; N]>
; - deserializer requires the field to implement
TryFromArray
orTryFrom<[u8; N]>
.
Implementations§
Source§impl<Enc: Encoding> BoxedArrayLike<Enc>
impl<Enc: Encoding> BoxedArrayLike<Enc>
Auto Trait Implementations§
impl<Enc> Freeze for BoxedArrayLike<Enc>
impl<Enc> RefUnwindSafe for BoxedArrayLike<Enc>where
Enc: RefUnwindSafe,
impl<Enc> Send for BoxedArrayLike<Enc>where
Enc: Send,
impl<Enc> Sync for BoxedArrayLike<Enc>where
Enc: Sync,
impl<Enc> Unpin for BoxedArrayLike<Enc>where
Enc: Unpin,
impl<Enc> UnwindSafe for BoxedArrayLike<Enc>where
Enc: UnwindSafe,
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