1
0
Fork 0
mirror of https://github.com/azalea-rs/simdnbt.git synced 2025-08-02 15:36:03 +00:00

add traits to OptionalNbt

This commit is contained in:
mat 2023-09-21 17:55:36 -05:00
parent 76347de9eb
commit a75baa7a90
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ pub struct Nbt<'a> {
tag: CompoundTag<'a>,
}
#[derive(Debug, PartialEq)]
pub enum OptionalNbt<'a> {
Some(Nbt<'a>),
None,

View file

@ -26,6 +26,7 @@ pub struct Nbt {
tag: CompoundTag,
}
#[derive(Debug, Clone, PartialEq)]
pub enum OptionalNbt {
Some(Nbt),
None,