bumpalo_try 0.1.0

Allocates a fallible iterator into a bumpalo.
Documentation
  • Coverage
  • 66.67%
    4 out of 6 items documented4 out of 5 items with examples
  • Size
  • Source code size: 7.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.27 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • JonathanBrouwer/bumpalo_try
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JonathanBrouwer

About

Provides the following functions on a bumpalo:

  • fn alloc_slice_fill_with_result<T, E>(&self, len: usize, f: impl FnMut(usize) -> Result<T, E>) -> Result<&mut [T], E>
    
  • fn alloc_slice_fill_with_option<T>(&self, len: usize, mut f: impl FnMut(usize) -> Option<T>) -> Option<&mut [T]>
    
  • fn alloc_slice_fill_iter_result<T, E, I>(&self, iter: I) -> Result<&mut [T], E>
      where
          I: IntoIterator<Item = Result<T, E>>,
          I::IntoIter: ExactSizeIterator
    
  • fn alloc_slice_fill_iter_option<T, I>(&self, iter: I) -> Option<&mut [T]>
      where
          I: IntoIterator<Item = Option<T>>,
          I::IntoIter: ExactSizeIterator
    

These functions will early-exit if the stream of values indicates a failure.