pub struct Dummy;Expand description
An empty Dummy type. Each trait generated by the dummies macro will be implemented for this
type.
use double_trait::{dummies, Dummy};
#[dummies]
trait OrgTrait {
fn answer(&self) -> i32;
}
OrgTrait::answer(&Dummy); // Compiles, but raises panic with `unimplemented!()`Trait Implementations§
Source§impl Ord for Dummy
impl Ord for Dummy
Source§impl PartialOrd for Dummy
impl PartialOrd for Dummy
impl Eq for Dummy
impl StructuralPartialEq for Dummy
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