#[repr(C)]pub struct BytesField<const CAP: usize> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<const CAP: usize> Clone for BytesField<CAP>
impl<const CAP: usize> Clone for BytesField<CAP>
Source§fn clone(&self) -> BytesField<CAP>
fn clone(&self) -> BytesField<CAP>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const CAP: usize> Debug for BytesField<CAP>
impl<const CAP: usize> Debug for BytesField<CAP>
Source§impl<const CAP: usize> PartialEq for BytesField<CAP>
impl<const CAP: usize> PartialEq for BytesField<CAP>
Source§impl<const CAP: usize> TryFrom<&[u8]> for BytesField<CAP>
impl<const CAP: usize> TryFrom<&[u8]> for BytesField<CAP>
Source§type Error = TooManyItemsError
type Error = TooManyItemsError
The type returned in the event of a conversion error.
Source§fn try_from(value: &[u8]) -> Result<BytesField<CAP>, TooManyItemsError>
fn try_from(value: &[u8]) -> Result<BytesField<CAP>, TooManyItemsError>
Performs the conversion.
Source§impl<const CAP: usize, const SIZE: usize> TryFrom<&[u8; SIZE]> for BytesField<CAP>
impl<const CAP: usize, const SIZE: usize> TryFrom<&[u8; SIZE]> for BytesField<CAP>
Source§type Error = TooManyItemsError
type Error = TooManyItemsError
The type returned in the event of a conversion error.
Source§fn try_from(value: &[u8; SIZE]) -> Result<BytesField<CAP>, TooManyItemsError>
fn try_from(value: &[u8; SIZE]) -> Result<BytesField<CAP>, TooManyItemsError>
Performs the conversion.
impl<const CAP: usize> Copy for BytesField<CAP>
impl<const CAP: usize> Eq for BytesField<CAP>
impl<const CAP: usize> StructuralPartialEq for BytesField<CAP>
Auto Trait Implementations§
impl<const CAP: usize> Freeze for BytesField<CAP>
impl<const CAP: usize> RefUnwindSafe for BytesField<CAP>
impl<const CAP: usize> Send for BytesField<CAP>
impl<const CAP: usize> Sync for BytesField<CAP>
impl<const CAP: usize> Unpin for BytesField<CAP>
impl<const CAP: usize> UnwindSafe for BytesField<CAP>
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