pub struct Translation {
pub text: String,
pub warnings: Vec<Warning>,
}Expand description
A finished conversion: the text, and whatever the conversion had to do beyond what the input
said. See translate_with_warnings.
Fields§
§text: StringThe converted text, after any explicitly enabled input repairs.
warnings: Vec<Warning>Input repairs in source order, followed by conversion warnings.
Trait Implementations§
Source§impl Clone for Translation
impl Clone for Translation
Source§impl Debug for Translation
impl Debug for Translation
impl Eq for Translation
Source§impl PartialEq for Translation
impl PartialEq for Translation
impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl Freeze for Translation
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnsafeUnpin for Translation
impl UnwindSafe for Translation
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