(placeholder: S)
| 11 | |
| 12 | impl Input { |
| 13 | pub fn new<S: Into<String>>(placeholder: S) -> Self { |
| 14 | Self { |
| 15 | value: String::new(), |
| 16 | placeholder: placeholder.into(), |
| 17 | bounds: Rect { |
| 18 | origin: Point::new(0.0, 0.0), |
| 19 | size: Size { width: 200.0, height: 40.0 }, |
| 20 | }, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | pub fn set_value(&mut self, value: String) { |
| 25 | self.value = value; |
nothing calls this directly
no outgoing calls
no test coverage detected