pub enum RustFlags {
Lint(String, Lint),
Combine(Box<RustFlags>, Box<RustFlags>),
}
Variants§
Implementations§
Source§impl RustFlags
impl RustFlags
pub fn allow<S>(name: S) -> RustFlagswhere
S: ToString,
pub fn warn<S>(name: S) -> RustFlagswhere
S: ToString,
pub fn deny<S>(name: S) -> RustFlagswhere
S: ToString,
pub fn forbid<S>(name: S) -> RustFlagswhere
S: ToString,
pub fn codegen<S>(name: S) -> RustFlagswhere
S: ToString,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustFlags
impl RefUnwindSafe for RustFlags
impl Send for RustFlags
impl Sync for RustFlags
impl Unpin for RustFlags
impl UnwindSafe for RustFlags
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