Struct typed_bytes::ByteArray
source · pub struct ByteArray<T: ?Sized> {
pub(crate) array: Box<[u8]>,
pub(crate) phantom: PhantomData<T>,
}
Expand description
A typed Array of bytes
Fields§
§array: Box<[u8]>
§phantom: PhantomData<T>
Implementations§
Trait Implementations§
source§impl<T: PartialEq + ?Sized> PartialEq<ByteArray<T>> for ByteArray<T>
impl<T: PartialEq + ?Sized> PartialEq<ByteArray<T>> for ByteArray<T>
impl<T: Eq + ?Sized> Eq for ByteArray<T>
impl<T: ?Sized> StructuralEq for ByteArray<T>
impl<T: ?Sized> StructuralPartialEq for ByteArray<T>
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for ByteArray<T>where T: RefUnwindSafe,
impl<T: ?Sized> Send for ByteArray<T>where T: Send,
impl<T: ?Sized> Sync for ByteArray<T>where T: Sync,
impl<T: ?Sized> Unpin for ByteArray<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for ByteArray<T>where T: 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