1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use torin::content::Content;

use crate::Parse;

#[derive(Debug, PartialEq, Eq)]
pub struct ParseContentError;

impl Parse for Content {
    type Err = ParseContentError;

    fn parse(value: &str) -> Result<Self, Self::Err> {
        Ok(match value {
            "fit" => Content::Fit,
            _ => Content::Normal,
        })
    }
}