pub struct Shape {
pub bytes: usize,
pub heap: usize,
pub nodes: usize,
pub depth: usize,
}Expand description
Worst-case bounds for one finite value.
Fields§
§bytes: usizeMaximum canonical Postcard payload bytes.
heap: usizeMaximum requested heap bytes owned by the decoded value.
nodes: usizeMaximum visited value nodes, including zero-byte values.
depth: usizeMaximum nested value depth.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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