pub struct Scoped { /* private fields */ }Expand description
RAII-like scoped log level.
use lief::logging;
logging::set_level(logging::Level::INFO);
{
let _scoped = logging::Scoped::new(logging::Level::DEBUG);
// Log level is now DEBUG
}
// Log level is restored to INFOImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scoped
impl !Send for Scoped
impl !Sync for Scoped
impl Unpin for Scoped
impl UnwindSafe for Scoped
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