17 releases (9 breaking)
0.10.0 | Aug 14, 2024 |
---|---|
0.9.1 | Apr 29, 2024 |
0.8.1 | Mar 23, 2024 |
0.6.3 | Dec 16, 2023 |
0.2.0 | Jun 6, 2023 |
#1612 in Text processing
691 downloads per month
Used in 4 crates
(via jpreprocess-njd)
8KB
128 lines
jpreprocess-window
The utility library for jpreprocess, Japanese text preprocessor for Text-to-Speech application.
This package implements mutable window.
This project is a rewrite of OpenJTalk in Rust language.
Usage
Put the following in Cargo.toml
[dependencies]
jpreprocess-window = "0.10.0"
License
BSD-3-Clause
API Reference
lib.rs
:
An iterator-like object which returns contiguous windows containing five mutable references.
Example
use jpreprocess_window::*;
let mut vector = [0, 1, 2, 3, 4];
let mut iter = IterQuintMut::new(&mut vector);
assert_eq!(iter.next().unwrap(), Quintuple::First(&mut 0, &mut 1, &mut 2, &mut 3));
assert_eq!(iter.next().unwrap(), Quintuple::Full(&mut 0, &mut 1, &mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::ThreeLeft(&mut 1, &mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::TwoLeft(&mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::Last(&mut 3, &mut 4));