pub struct Translator {
pub from_id: String,
pub to_id: String,
/* private fields */
}Expand description
Cross-vocab agent-handoff pipe.
Fields§
§from_id: String§to_id: StringImplementations§
Source§impl Translator
impl Translator
Sourcepub fn new(from_map: &TokenizerMap, to_map: &TokenizerMap) -> Self
pub fn new(from_map: &TokenizerMap, to_map: &TokenizerMap) -> Self
Construct a translator from V_A (from_map) to V_B (to_map).
Auto Trait Implementations§
impl Freeze for Translator
impl !RefUnwindSafe for Translator
impl Send for Translator
impl !Sync for Translator
impl Unpin for Translator
impl UnsafeUnpin for Translator
impl !UnwindSafe for Translator
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