(style: QuoteStyle)
| 61 | type Error = (); |
| 62 | |
| 63 | fn try_from(style: QuoteStyle) -> Result<Quote, ()> { |
| 64 | match style { |
| 65 | QuoteStyle::Single => Ok(Quote::Single), |
| 66 | QuoteStyle::Double => Ok(Quote::Double), |
| 67 | QuoteStyle::Preserve => Err(()), |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | impl From<Quote> for QuoteStyle { |