Struct css_modules::CssModuleBuilder
source · pub struct CssModuleBuilder(/* private fields */);
Expand description
Build a new CssModule
.
Implementations§
source§impl CssModuleBuilder
impl CssModuleBuilder
pub fn new() -> Self
sourcepub fn finish(self) -> CssModule
pub fn finish(self) -> CssModule
Finish building and return the CssModule
.
use css_modules::CssModule;
let css = CssModule::new()
.with_name("css_module_name")
.finish();
assert_eq!("css_module_name", css.name);
pub fn with_name(self, name: &str) -> Self
sourcepub fn with_stylesheet(self, stylesheet: &str) -> Self
pub fn with_stylesheet(self, stylesheet: &str) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CssModuleBuilder
impl RefUnwindSafe for CssModuleBuilder
impl Send for CssModuleBuilder
impl Sync for CssModuleBuilder
impl Unpin for CssModuleBuilder
impl UnwindSafe for CssModuleBuilder
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