1 2 3 4 5 6 7 8 9 10 11 12
/// Occurs when an argument to a function was incorrect or not valid at the given time. #[derive(Debug)] pub struct ArgumentError(pub String); impl<T> From<T> for ArgumentError where T: Into<String>, { fn from(value: T) -> Self { Self(value.into()) } }