freya_core/values/
content.rs

1use torin::content::Content;
2
3use crate::parsing::{
4    Parse,
5    ParseError,
6};
7
8impl Parse for Content {
9    fn parse(value: &str) -> Result<Self, ParseError> {
10        Ok(match value {
11            "fit" => Content::Fit,
12            "flex" => Content::Flex,
13            _ => Content::Normal,
14        })
15    }
16}