SSTT

Crates.ioSSTT
lib.rsSSTT
version0.1.0
sourcesrc
created_at2023-05-24 08:27:57.295177
updated_at2023-05-24 08:27:57.295177
descriptionMore Syn Syntax Tree Traversal Trait
homepage
repositoryhttps://github.com/MadyLab/SSTT
max_upload_size
id872844
size436,722
(KAIYOHUGO)

documentation

README

SSTT

More Syn Syntax Tree Traversal Trait

GitHub Crates.io docs.rs

SSTT crate provide some useful trait for syn syntax tree traversal.

Example

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)
    }

    // ...
}
Commit count: 7

cargo fmt