mirror of
https://github.com/azalea-rs/simdnbt.git
synced 2025-08-02 07:26:04 +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>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Default)]
|
||||
pub enum Nbt<'a> {
|
||||
Some(BaseNbt<'a>),
|
||||
#[default]
|
||||
None,
|
||||
}
|
||||
|
||||
|
|
|
@ -27,9 +27,10 @@ pub struct BaseNbt {
|
|||
tag: NbtCompound,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Default)]
|
||||
pub enum Nbt {
|
||||
Some(BaseNbt),
|
||||
#[default]
|
||||
None,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue