pub struct ConfigParser;Expand description
Configuration parser with validation
Implementations§
Source§impl ConfigParser
impl ConfigParser
Sourcepub fn parse_toml(&self, content: &str) -> Result<TailwindConfig>
pub fn parse_toml(&self, content: &str) -> Result<TailwindConfig>
Parse configuration from TOML string
Sourcepub fn parse_file(&self, path: &Path) -> Result<TailwindConfig>
pub fn parse_file(&self, path: &Path) -> Result<TailwindConfig>
Parse configuration from file
Sourcepub fn validate(&self, config: &TailwindConfig) -> Result<()>
pub fn validate(&self, config: &TailwindConfig) -> Result<()>
Validate configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigParser
impl RefUnwindSafe for ConfigParser
impl Send for ConfigParser
impl Sync for ConfigParser
impl Unpin for ConfigParser
impl UnwindSafe for ConfigParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more