pub struct Rule { /* private fields */ }Expand description
An invokable build command and associated metadata (description, etc.).
Implementations§
Source§impl Rule
impl Rule
pub fn new(name: Vec<u8>) -> Self
pub fn name(&self) -> &[u8] ⓘ
pub fn add_binding(&mut self, key: &[u8], val: &EvalString)
pub fn is_reserved_binding(var: &[u8]) -> bool
pub fn get_binding(&self, key: &[u8]) -> Option<&EvalString>
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