#![cfg(test)]
#![allow(dead_code)]
mod bounds;
mod dst;
mod skip;
mod visit;
mod with_flamegraph;
use crate as allocative;
use crate::Allocative;
#[derive(Allocative)]
struct Empty {}
#[derive(Allocative)]
struct TupleStruct(u32, String);
#[derive(Allocative)]
struct RegularStruct {
a: u32,
b: String,
}
#[derive(Allocative)]
enum Enum {
Unit,
Tuple(u32, String),
Regular { a: u32, b: String },
}
#[derive(Allocative)]
enum GenericEnum<T> {
Unit,
Tuple(T, String),
}
#[derive(Allocative)]
struct StructWithDefaultParam<T = String>(T);