Crates.io | ssttt |
lib.rs | ssttt |
version | 0.1.0 |
source | src |
created_at | 2023-05-24 08:53:35.013333 |
updated_at | 2023-05-24 08:53:35.013333 |
description | More Syn Syntax Tree Traversal Trait |
homepage | |
repository | https://github.com/MadyLab/SSTTT |
max_upload_size | |
id | 872861 |
size | 436,738 |
More Syn Syntax Tree Traversal Trait
SSTTT crate provide some useful trait for syn syntax tree traversal.
fallible Fold
pub trait TryFold {
type Error;
fn try_fold_abi(&mut self, t: syn::Abi) -> Result<syn::Abi, Self::Error>
{
try_fold_abi(self, t)
}
// ...
}
fallible take (like fold but without return new value)
pub trait TryTake {
type Error;
fn try_take_abi(&mut self, t: syn::Abi) -> Result<(), Self::Error> {
try_take_abi(self, t)
}
// ...
}