Struct tailwind_rs::TailwindBuilder
source · [−]pub struct TailwindBuilder {
pub preflight: PreflightSystem,
pub palettes: PaletteSystem,
pub screens: BreakPointSystem,
pub fonts: FontSystem,
pub effects: EffectSystem,
/* private fields */
}
Expand description
Fields
preflight: PreflightSystem
palettes: PaletteSystem
All dynamic color properties
Only determined when packing
screens: BreakPointSystem
All dynamic break points
Only determined when packing
fonts: FontSystem
All dynamically registered font properties
Only determined when packing
effects: EffectSystem
All dynamically registered effect properties
Only determined when packing
Implementations
sourceimpl TailwindBuilder
impl TailwindBuilder
sourcepub fn preflight(&mut self) -> &mut PreflightSystem
pub fn preflight(&mut self) -> &mut PreflightSystem
Config for preflight progress
sourcepub fn preflight_addition(&mut self, custom: impl Into<String>)
pub fn preflight_addition(&mut self, custom: impl Into<String>)
Add custom preflight information
sourceimpl TailwindBuilder
impl TailwindBuilder
sourcepub fn trace(
&mut self,
style: &str,
obfuscate: bool
) -> Result<String, TailwindError>
pub fn trace(
&mut self,
style: &str,
obfuscate: bool
) -> Result<String, TailwindError>
Trace mode
Returns
Not all instructions can be inline, if not, it will fall back to trace mode
- Anonymous style sheets, which can be placed inside
style
tags
Example
- input
<div class="p-auto px-px pt-2 pb-2">Test</div>
- output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>
sourcepub fn inline(&mut self, style: &str) -> Result<(String, String), TailwindError>
pub fn inline(&mut self, style: &str) -> Result<(String, String), TailwindError>
Inline mode
Returns
Not all instructions can be inline, if not, it will fall back to trace mode
- Anonymous style sheets, which can be placed inside
style
tags
Example
- input
<div class="p-auto px-px pt-2 pb-2">Test</div>
- output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>
sourcepub fn scope(&mut self, style: &str) -> Result<(String, String), TailwindError>
pub fn scope(&mut self, style: &str) -> Result<(String, String), TailwindError>
Inline mode
Returns
Not all instructions can be inline, if not, it will fall back to trace mode
- Anonymous style sheets, which can be placed inside
style
tags
Example
- input
<div class="p-auto px-px pt-2 pb-2">Test</div>
- output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>
sourcepub fn data_key(
&mut self,
style: &str
) -> Result<(String, String), TailwindError>
pub fn data_key(
&mut self,
style: &str
) -> Result<(String, String), TailwindError>
Inline mode
Returns
Not all instructions can be inline, if not, it will fall back to trace mode
- Anonymous style sheets, which can be placed inside
style
tags
Example
- input
<div class="p-auto px-px pt-2 pb-2">Test</div>
- output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>
sourcepub fn data_value(
&mut self,
style: &str
) -> Result<(String, String), TailwindError>
pub fn data_value(
&mut self,
style: &str
) -> Result<(String, String), TailwindError>
Inline mode
Returns
Not all instructions can be inline, if not, it will fall back to trace mode
- Anonymous style sheets, which can be placed inside
style
tags
Example
- input
<div class="p-auto px-px pt-2 pb-2">Test</div>
- output
<div class="p-auto px-px pt-2 pb-2">Test</div>
<style> {} </style>
sourcepub fn bundle(&self) -> Result<String, TailwindError>
pub fn bundle(&self) -> Result<String, TailwindError>
Bundle all used stylesheets
Trait Implementations
sourceimpl Debug for TailwindBuilder
impl Debug for TailwindBuilder
sourceimpl Default for TailwindBuilder
impl Default for TailwindBuilder
sourcefn default() -> TailwindBuilder
fn default() -> TailwindBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TailwindBuilder
impl Send for TailwindBuilder
impl Sync for TailwindBuilder
impl Unpin for TailwindBuilder
impl UnwindSafe for TailwindBuilder
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer