pub struct Generator { /* private fields */ }Expand description
CSS Generator
Implementations§
Source§impl Generator
impl Generator
Sourcepub fn with_options(options: GeneratorOptions) -> Self
pub fn with_options(options: GeneratorOptions) -> Self
Create a new generator with custom options
Sourcepub fn generate(&mut self, program: &Program) -> Result<String, String>
pub fn generate(&mut self, program: &Program) -> Result<String, String>
Generate CSS from a TCSS program
Sourcepub fn generate_minified(&mut self, program: &Program) -> Result<String, String>
pub fn generate_minified(&mut self, program: &Program) -> Result<String, String>
Generate minified CSS from a TCSS program
Sourcepub fn generate_formatted(
&mut self,
program: &Program,
) -> Result<String, String>
pub fn generate_formatted( &mut self, program: &Program, ) -> Result<String, String>
Generate formatted CSS from a TCSS program
Sourcepub fn executor_mut(&mut self) -> &mut Executor
pub fn executor_mut(&mut self) -> &mut Executor
Get a mutable reference to the executor
Sourcepub fn options(&self) -> &GeneratorOptions
pub fn options(&self) -> &GeneratorOptions
Get the current options
Sourcepub fn set_options(&mut self, options: GeneratorOptions)
pub fn set_options(&mut self, options: GeneratorOptions)
Set new options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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