pub struct ConstBytes<T, const LEN: usize>(/* private fields */);Expand description
Constantly known byte string.
Trait Implementations§
Source§impl<T: Clone, const LEN: usize> Clone for ConstBytes<T, LEN>
impl<T: Clone, const LEN: usize> Clone for ConstBytes<T, LEN>
Source§fn clone(&self) -> ConstBytes<T, LEN>
fn clone(&self) -> ConstBytes<T, LEN>
Returns a duplicate 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<T: Default, const LEN: usize> Default for ConstBytes<T, LEN>
impl<T: Default, const LEN: usize> Default for ConstBytes<T, LEN>
Source§fn default() -> ConstBytes<T, LEN>
fn default() -> ConstBytes<T, LEN>
Returns the “default value” for a type. Read more
Source§impl<'de, T, const LEN: usize> MyDeserialize<'de> for ConstBytes<T, LEN>where
T: Default + ConstBytesValue<LEN>,
impl<'de, T, const LEN: usize> MyDeserialize<'de> for ConstBytes<T, LEN>where
T: Default + ConstBytesValue<LEN>,
Source§impl<T, const LEN: usize> MySerialize for ConstBytes<T, LEN>where
T: ConstBytesValue<LEN>,
impl<T, const LEN: usize> MySerialize for ConstBytes<T, LEN>where
T: ConstBytesValue<LEN>,
impl<T: Copy, const LEN: usize> Copy for ConstBytes<T, LEN>
impl<T: Eq, const LEN: usize> Eq for ConstBytes<T, LEN>
impl<T, const LEN: usize> StructuralPartialEq for ConstBytes<T, LEN>
Auto Trait Implementations§
impl<T, const LEN: usize> Freeze for ConstBytes<T, LEN>
impl<T, const LEN: usize> RefUnwindSafe for ConstBytes<T, LEN>where
T: RefUnwindSafe,
impl<T, const LEN: usize> Send for ConstBytes<T, LEN>where
T: Send,
impl<T, const LEN: usize> Sync for ConstBytes<T, LEN>where
T: Sync,
impl<T, const LEN: usize> Unpin for ConstBytes<T, LEN>where
T: Unpin,
impl<T, const LEN: usize> UnwindSafe for ConstBytes<T, LEN>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