pub struct NullDevice;Expand description
Does nothing.
Does not accept any reads nor writes and never interrupts.
Trait Implementations§
source§impl Clone for NullDevice
impl Clone for NullDevice
source§fn clone(&self) -> NullDevice
fn clone(&self) -> NullDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for NullDevice
impl Default for NullDevice
source§fn default() -> NullDevice
fn default() -> NullDevice
Returns the “default value” for a type. Read more
source§impl ExternalDevice for NullDevice
impl ExternalDevice for NullDevice
source§impl PartialEq for NullDevice
impl PartialEq for NullDevice
impl Copy for NullDevice
impl Eq for NullDevice
impl StructuralPartialEq for NullDevice
Auto Trait Implementations§
impl Freeze for NullDevice
impl RefUnwindSafe for NullDevice
impl Send for NullDevice
impl Sync for NullDevice
impl Unpin for NullDevice
impl UnwindSafe for NullDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)