mirror of
https://github.com/azalea-rs/simdnbt.git
synced 2025-08-02 23:44:40 +00:00
Nbt::default
This commit is contained in:
parent
94004e2021
commit
878d115b70
2 changed files with 4 additions and 2 deletions
|
@ -26,9 +26,10 @@ pub struct BaseNbt<'a> {
|
||||||
tag: NbtCompound<'a>,
|
tag: NbtCompound<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq, Default)]
|
||||||
pub enum Nbt<'a> {
|
pub enum Nbt<'a> {
|
||||||
Some(BaseNbt<'a>),
|
Some(BaseNbt<'a>),
|
||||||
|
#[default]
|
||||||
None,
|
None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,10 @@ pub struct BaseNbt {
|
||||||
tag: NbtCompound,
|
tag: NbtCompound,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq, Default)]
|
||||||
pub enum Nbt {
|
pub enum Nbt {
|
||||||
Some(BaseNbt),
|
Some(BaseNbt),
|
||||||
|
#[default]
|
||||||
None,
|
None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue