pub struct TextItem {
pub text: String,
pub text_type: TextType,
pub priority: TextPriority,
pub complexity: f32,
pub location: String,
}Expand description
文本项 - 表示单个可翻译的文本单元
Fields§
§text: String原始文本内容
text_type: TextType文本类型
priority: TextPriority翻译优先级
complexity: f32预估复杂度 (0.0-1.0)
location: String在DOM中的位置标识
Trait Implementations§
impl StructuralPartialEq for TextItem
Auto Trait Implementations§
impl Freeze for TextItem
impl RefUnwindSafe for TextItem
impl Send for TextItem
impl Sync for TextItem
impl Unpin for TextItem
impl UnwindSafe for TextItem
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