#[non_exhaustive]pub enum Granularity {
Sentence,
Paragraph,
Document,
}Expand description
How finely units are split into segments.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sentence
SRX sentence segmentation (the classic CAT default).
Paragraph
One segment per unit (paragraph, cell, string).
Document
One segment per unit, flagged so AI lanes translate the whole document in one pass. The editor still edits per unit.
Trait Implementations§
Source§impl Clone for Granularity
impl Clone for Granularity
impl Copy for Granularity
Source§impl Debug for Granularity
impl Debug for Granularity
Source§impl Default for Granularity
impl Default for Granularity
Source§impl<'de> Deserialize<'de> for Granularity
impl<'de> Deserialize<'de> for Granularity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Granularity
Source§impl PartialEq for Granularity
impl PartialEq for Granularity
Source§impl Serialize for Granularity
impl Serialize for Granularity
impl StructuralPartialEq for Granularity
Auto Trait Implementations§
impl Forget for Granularity
impl Freeze for Granularity
impl RefUnwindSafe for Granularity
impl Send for Granularity
impl Sync for Granularity
impl Unpin for Granularity
impl UnsafeUnpin for Granularity
impl UnwindSafe for Granularity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more