pub struct Rule { /* private fields */ }
Expand description
Implementations§
Source§impl Rule
impl Rule
pub fn new(name: impl AsRef<str>, compiler: impl Compiler + 'static) -> Self
Sourcepub fn set_globs(self, globs: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn set_globs(self, globs: impl IntoIterator<Item = impl AsRef<str>>) -> Self
Set a list of glob patterns to compile.
Sourcepub fn set_create(
self,
create: impl IntoIterator<Item = impl AsRef<str>>,
) -> Self
pub fn set_create( self, create: impl IntoIterator<Item = impl AsRef<str>>, ) -> Self
Set a list of source file names to create.
Sourcepub fn set_version(self, version: impl Into<Version>) -> Self
pub fn set_version(self, version: impl Into<Version>) -> Self
Set compilation Version
Auto Trait Implementations§
impl Freeze for Rule
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