Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NO_LABEL and NO_STATE_ID public #143

Merged
merged 3 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Expose in `prelude` `tr_mappers`.

### Changed
- `NO_LABEL` and `NO_STATE_ID` are now public.
- Fixed bug in `RmEpsilon`: mutation had to be performed while iterating.
- `QuantizeMapper` has now a configurable delta value with default set to `KDELTA`
- Replace `FstCache` implementation for `Arc<FstCache>` by the deref trait.
Expand Down
6 changes: 3 additions & 3 deletions rustfst/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ pub mod prelude {
pub use crate::fst_traits::*;
pub use crate::semirings::*;
pub use crate::tr::Tr;
pub use crate::trs::{ TrsVec, Trs, TrsConst };
pub use crate::trs::{Trs, TrsConst, TrsVec};
pub use crate::*;
}

mod proptest_fst;

pub(crate) static NO_LABEL: Label = std::usize::MAX;
pub(crate) static NO_STATE_ID: StateId = std::usize::MAX;
pub static NO_LABEL: Label = std::usize::MAX;
pub static NO_STATE_ID: StateId = std::usize::MAX;
pub(crate) static UNASSIGNED: usize = std::usize::MAX;

pub mod trs;
Expand Down