We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63d3eab commit 3994ee9Copy full SHA for 3994ee9
src/lib.rs
@@ -294,6 +294,11 @@ impl Mnemonic {
294
Mnemonic::generate_in(Language::English, word_count)
295
}
296
297
+ /// Get the language of the [Mnemonic].
298
+ pub fn language(&self) -> Language {
299
+ self.lang
300
+ }
301
+
302
/// Get an iterator over the words.
303
pub fn word_iter(&self) -> impl Iterator<Item = &'static str> + Clone + '_ {
304
let list = self.lang.word_list();
0 commit comments