A utility trait for implementing a `try_from_str` with a provided context.
| 37 | /// A utility trait for implementing a `try_from_str` with a provided |
| 38 | /// context. |
| 39 | pub trait TryFromStr<C>: Sized { |
| 40 | type Error; |
| 41 | fn try_from_str(s: &str, context: &mut C) -> Result<Self, Self::Error>; |
| 42 | } |
| 43 | |
| 44 | /// The context for the line parser |
| 45 | #[derive(Debug, Clone)] |