pub struct FromTo {
pub tf: HashMap<Lang, Lang>,
pub ft: HashMap<Lang, Vec<Lang>>,
pub default_from: Option<Lang>,
}Fields§
§tf: HashMap<Lang, Lang>§ft: HashMap<Lang, Vec<Lang>>§default_from: Option<Lang>Implementations§
source§impl FromTo
impl FromTo
pub fn root(&self) -> Option<Lang>
pub fn has_to_li(&self, lang: Lang) -> bool
pub fn to_li(&self, lang: Lang) -> Option<Box<[Lang]>>
pub fn from<T: TryInto<Lang>>(&self, lang: T) -> Option<Lang>
pub fn root_all_lang_li(&self) -> Vec<Lang>
pub fn all_lang_li(&self) -> Vec<Lang>
pub fn all_lang_set(&self) -> HashSet<Lang>
pub fn from_lang_li(&self) -> Vec<Lang>
pub fn add(&mut self, from: u16, to_set: HashSet<u16>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FromTo
impl RefUnwindSafe for FromTo
impl Send for FromTo
impl Sync for FromTo
impl Unpin for FromTo
impl UnwindSafe for FromTo
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