pub struct ConfigParser;Expand description
Re-export core tailwind-rs functionality Configuration parser with validation
Implementations§
Source§impl ConfigParser
impl ConfigParser
Sourcepub fn new() -> ConfigParser
pub fn new() -> ConfigParser
Create a new configuration parser
Sourcepub fn parse_toml(&self, content: &str) -> Result<TailwindConfig, TailwindError>
pub fn parse_toml(&self, content: &str) -> Result<TailwindConfig, TailwindError>
Parse configuration from TOML string
Sourcepub fn parse_file(&self, path: &Path) -> Result<TailwindConfig, TailwindError>
pub fn parse_file(&self, path: &Path) -> Result<TailwindConfig, TailwindError>
Parse configuration from file
Sourcepub fn validate(&self, config: &TailwindConfig) -> Result<(), TailwindError>
pub fn validate(&self, config: &TailwindConfig) -> Result<(), TailwindError>
Validate configuration
Trait Implementations§
Source§impl Default for ConfigParser
impl Default for ConfigParser
Source§fn default() -> ConfigParser
fn default() -> ConfigParser
Returns the “default value” for a type. Read more
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