pub enum SerializedSize {
Static(usize),
Dynamic(usize),
}Expand description
Information known at compile time about a type’s serialized size.
Variants§
Static(usize)
Every serialized value fits within this many bytes.
Individual values may be smaller, such as enum variants with different encoded sizes.
Dynamic(usize)
A complete upper bound cannot be derived, but statically sized fields contribute at most this many bytes.
Trait Implementations§
Source§impl Clone for SerializedSize
impl Clone for SerializedSize
Source§fn clone(&self) -> SerializedSize
fn clone(&self) -> SerializedSize
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 SerializedSize
Source§impl Debug for SerializedSize
impl Debug for SerializedSize
impl Eq for SerializedSize
Source§impl PartialEq for SerializedSize
impl PartialEq for SerializedSize
impl StructuralPartialEq for SerializedSize
Auto Trait Implementations§
impl Freeze for SerializedSize
impl RefUnwindSafe for SerializedSize
impl Send for SerializedSize
impl Sync for SerializedSize
impl Unpin for SerializedSize
impl UnsafeUnpin for SerializedSize
impl UnwindSafe for SerializedSize
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