pub struct SerializationStats {
pub sexpr_bytes: usize,
pub binary_bytes: usize,
pub compression_ratio: f64,
pub node_count: usize,
pub max_depth: usize,
}Expand description
Statistics about the serialized form of a TLExpr.
Fields§
§sexpr_bytes: usizeSize of the S-expression representation in bytes
binary_bytes: usizeSize of the binary representation in bytes
compression_ratio: f64Compression ratio: sexpr_bytes / binary_bytes
node_count: usizeNumber of AST nodes in the expression
max_depth: usizeMaximum nesting depth
Implementations§
Trait Implementations§
Source§impl Clone for SerializationStats
impl Clone for SerializationStats
Source§fn clone(&self) -> SerializationStats
fn clone(&self) -> SerializationStats
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 moreAuto Trait Implementations§
impl Freeze for SerializationStats
impl RefUnwindSafe for SerializationStats
impl Send for SerializationStats
impl Sync for SerializationStats
impl Unpin for SerializationStats
impl UnsafeUnpin for SerializationStats
impl UnwindSafe for SerializationStats
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