Files
dioxus/packages/rink/src/widgets/password.rs
T
2023-04-16 14:05:27 -05:00

13 lines
330 B
Rust

use super::text_like::{TextLike, TextLikeController};
pub(crate) type Password = TextLike<PasswordController>;
#[derive(Debug, Default)]
pub(crate) struct PasswordController;
impl TextLikeController for PasswordController {
fn display_text(&self, text: &str) -> String {
text.chars().map(|_| '.').collect()
}
}