pub struct FixedWidth(/* private fields */);Expand description
Proof that a type’s buffer encoding is exactly its little-endian in-memory representation, which lets lists of it encode and decode with one copy.
Only this crate can construct it, so only the built-in integer and float
implementations of BufferValue can opt into the fast path; a type with
invalid bit patterns (bool, an enum) can never be copied in unchecked.
Trait Implementations§
Source§impl Clone for FixedWidth
impl Clone for FixedWidth
Source§fn clone(&self) -> FixedWidth
fn clone(&self) -> FixedWidth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FixedWidth
Auto Trait Implementations§
impl Freeze for FixedWidth
impl RefUnwindSafe for FixedWidth
impl Send for FixedWidth
impl Sync for FixedWidth
impl Unpin for FixedWidth
impl UnsafeUnpin for FixedWidth
impl UnwindSafe for FixedWidth
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