(&self, input: VarInput)
| 1072 | } |
| 1073 | |
| 1074 | fn parse(&self, input: VarInput) -> Result<Box<dyn Value>, VarError> { |
| 1075 | let v = self.definition.parse(input)?; |
| 1076 | // Validate our parsed value. |
| 1077 | self.validate_constraints(v.as_ref())?; |
| 1078 | Ok(v) |
| 1079 | } |
| 1080 | |
| 1081 | fn set(&mut self, input: VarInput) -> Result<bool, VarError> { |
| 1082 | let v = self.parse(input)?; |
no test coverage detected