mirror of
https://github.com/instant-labs/instant-segment.git
synced 2025-02-16 13:02:10 +00:00
Add some minimal documentation
This commit is contained in:
parent
2ef7eb82ba
commit
747dd22098
@ -167,6 +167,7 @@ impl<'a> SegmentState<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Search state for a [`Segmenter`]
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
pub struct Search {
|
pub struct Search {
|
||||||
candidates: Vec<Candidate>,
|
candidates: Vec<Candidate>,
|
||||||
@ -218,6 +219,7 @@ impl<'a> Index<Range<usize>> for Ascii<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Error returned by [`Segmenter::segment`] when given an invalid character
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct InvalidCharacter;
|
pub struct InvalidCharacter;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user