use std::borrow::Cow; use std::collections::HashMap; use std::mem::size_of; use std::rc::Rc; use std::sync::Arc; use chrono::{Duration, NaiveDateTime}; use spreadsheet_ods::metadata::Metadata; use spreadsheet_ods::sheet::{Grouped, SheetConfig}; use spreadsheet_ods::style::{TableStyle, TableStyleRef}; use spreadsheet_ods::text::TextTag; use spreadsheet_ods::{CellRange, ColRange, RowRange, Sheet, Value, WorkBook}; #[test] pub fn sizes() { println!("WorkBook {}", size_of::()); println!("Sheet {}", size_of::()); println!("Metadata {}", size_of::()); println!("(ucell,ucell) {}", size_of::<(u32, u32)>()); println!("Value {}", size_of::()); println!("bool {}", size_of::()); println!("f64 {}", size_of::()); println!("f64, Box {}", size_of::<(f64, Box)>()); println!("String {}", size_of::()); println!("Vec {}", size_of::>()); println!( "HashMap {}", size_of::>() ); println!("NaiveDateTime {}", size_of::()); println!("Duration {}", size_of::()); } #[test] pub fn sizes2() { println!("Sheet {}", size_of::()); println!("TableStyleRef {}", size_of::()); // println!("CellData {}", size_of::()); // println!("CellDataExt {}", size_of::()); // println!("ColHeader {}", size_of::()); // println!("RowHeader {}", size_of::()); println!("RowRange {}", size_of::()); println!("ColRange {}", size_of::()); println!("CellRange {}", size_of::()); println!("Grouped {}", size_of::()); println!("SheetConfig {}", size_of::()); println!("String {}", size_of::()); println!("Cow {}", size_of::>()); println!("Rc {}", size_of::>()); println!("Arc {}", size_of::>()); println!("Box {}", size_of::>()); }