pub struct Rule { /* private fields */ }
Implementations§
source§impl Rule
impl Rule
sourcepub fn set_globs(self, globs: impl IntoIterator<Item = impl ToString>) -> Self
pub fn set_globs(self, globs: impl IntoIterator<Item = impl ToString>) -> Self
Set a list of source file match globs
sourcepub fn set_create(self, create: impl IntoIterator<Item = impl ToString>) -> Self
pub fn set_create(self, create: impl IntoIterator<Item = impl ToString>) -> Self
Set source files name to create
sourcepub fn set_compiler(self, compiler: Arc<dyn Compiler>) -> Self
pub fn set_compiler(self, compiler: Arc<dyn Compiler>) -> Self
sourcepub fn set_version(self, version: impl Into<Version>) -> Self
pub fn set_version(self, version: impl Into<Version>) -> Self
Set compilation version
If the same version of a source file path is registered for compilation, that file will be
skipped.
Also read Version
.
Auto Trait Implementations§
impl !RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl !UnwindSafe for Rule
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