pub struct EmptyNamespace;
Expand description
Use EmptyNamespace
when you know that you won’t be looking up any variables.
It is a zero-sized type, which means it gets optimized-away at compile time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmptyNamespace
impl RefUnwindSafe for EmptyNamespace
impl Send for EmptyNamespace
impl Sync for EmptyNamespace
impl Unpin for EmptyNamespace
impl UnwindSafe for EmptyNamespace
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