> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Struct AppendOnlyTreeSnapshot

Module: `noir_aztec::protocol::abis::append_only_tree_snapshot`

```rust
pub struct AppendOnlyTreeSnapshot {
    pub root: Field,
    pub next_available_leaf_index: Field,
}
```

## Fields

```rust
root: Field
```

```rust
next_available_leaf_index: Field
```

## Trait implementations

```rust
impl Deserialize for AppendOnlyTreeSnapshot
```

```rust
pub fn deserialize(fields: [Field; 2]) -> Self
```

```rust
pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self
```

```rust
impl Empty for AppendOnlyTreeSnapshot
```

```rust
pub fn empty() -> Self
```

```rust
pub fn is_empty(self: Self) -> bool
where
    Self: Eq
```

```rust
pub fn assert_empty<let S: u32>(self: Self, msg: str<S>)
where
    Self: Eq
```

```rust
impl Eq for AppendOnlyTreeSnapshot
```

```rust
pub fn eq(_self: Self, _other: Self) -> bool
```

```rust
impl Serialize for AppendOnlyTreeSnapshot
```

```rust
pub fn serialize(self) -> [Field; 2]
```

```rust
pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)
```
