dioxus_use_window/hooks/use_width/
display.rs1use super::*;
2impl Display for UseWindowWidth {
3 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
4 Display::fmt(&self.get(), f)
5 }
6}
7
8impl From<UseWindow> for UseWindowWidth {
9 fn from(size: UseWindow) -> Self {
10 Self::new(size)
11 }
12}