# SSTTT
More **S**yn **S**yntax **T**ree **T**raversal **T**rait
![GitHub](https://img.shields.io/github/license/madylab/ssttt?style=for-the-badge) ![Crates.io](https://img.shields.io/crates/v/ssttt?style=for-the-badge) ![docs.rs](https://img.shields.io/docsrs/ssttt?style=for-the-badge)
SSTTT crate provide some useful trait for syn syntax tree traversal.
## Example
fallible [Fold](https://docs.rs/syn/latest/syn/fold/index.html)
```rust
pub trait TryFold {
type Error;
fn try_fold_abi(&mut self, t: syn::Abi) -> Result
{
try_fold_abi(self, t)
}
// ...
}
```
fallible take (like fold but without return new value)
```rust
pub trait TryTake {
type Error;
fn try_take_abi(&mut self, t: syn::Abi) -> Result<(), Self::Error> {
try_take_abi(self, t)
}
// ...
}
```