struct ImportMes<'a> {
messages: &'a Arc<HashMap<String, HashMap<String, (String, usize)>>>,
replacement: Option<&'a ReplacementTable>,
key: HashSet<String>,
text_key: String,
filename: String,
ori_text_key: Option<String>,
}Available on crate feature
kirikiri only.Fields§
§messages: &'a Arc<HashMap<String, HashMap<String, (String, usize)>>>§replacement: Option<&'a ReplacementTable>§key: HashSet<String>§text_key: String§filename: String§ori_text_key: Option<String>Implementations§
Source§impl<'a> ImportMes<'a>
impl<'a> ImportMes<'a>
pub fn new( messages: &'a Arc<HashMap<String, HashMap<String, (String, usize)>>>, replacement: Option<&'a ReplacementTable>, key: Vec<String>, lang: Option<String>, filename: String, ori_lang: Option<String>, ) -> Self
fn get_message(&self, original: &str) -> Option<String>
pub fn import(&self, value: &mut PsbValueFixed)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ImportMes<'a>
impl<'a> RefUnwindSafe for ImportMes<'a>
impl<'a> Send for ImportMes<'a>
impl<'a> Sync for ImportMes<'a>
impl<'a> Unpin for ImportMes<'a>
impl<'a> UnwindSafe for ImportMes<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more