ssttt 0.1.0

More Syn Syntax Tree Traversal Trait
Documentation
  • Coverage
  • 0.2%
    3 out of 1483 items documented1 out of 1 items with examples
  • Size
  • Source code size: 437.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 43.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 27s Average build duration of successful builds.
  • all releases: 27s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • MadyLab/SSTTT
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • KAIYOHUGO

SSTTT

More Syn Syntax Tree Traversal Trait

GitHub Crates.io docs.rs

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

    // ...
}