pub struct Dummy;Expand description
An empty Dummy type. Each trait generated by the double macro will be implemented for this
type.
use double_trait::{double, Dummy};
#[double(DoubleTrait)]
trait OrgTrait {
fn answer(&self) -> i32;
}
OrgTrait::answer(&Dummy); // Compiles, but raises panic with `unimplemented!()`Auto Trait Implementations§
impl Freeze for Dummy
impl RefUnwindSafe for Dummy
impl Send for Dummy
impl Sync for Dummy
impl Unpin for Dummy
impl UnwindSafe for Dummy
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