use musli::alloc::{Disabled, Global, String, Vec};
use musli::value::Value;
use musli::{Allocator, Decode, Encode};
#[derive(Encode, Decode)]
struct DisabledString {
string: String<Disabled>,
}
#[derive(Encode, Decode)]
struct GlobalContainers {
string: String<Global>,
vec: Vec<String<Global>, Global>,
#[musli(bytes)]
bytes: Vec<u8, Global>,
value: Value<Global>,
}
#[derive(Encode, Decode)]
#[musli(global, allocator = Global)]
struct BothAttributes {
value: Value<Global>,
}
#[derive(Encode, Decode)]
#[musli(global)]
struct AlreadyGeneric<A>
where
A: Allocator,
{
value: Value<A>,
}
#[derive(Encode, Decode)]
#[musli(Binary, global, decode_bound<'de, A> = {})]
struct NamedAllocator {
value: Value<Global>,
}
fn main() {}