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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NullDevice
Source§impl Default for NullDevice
impl Default for NullDevice
Source§fn default() -> NullDevice
fn default() -> NullDevice
Returns the “default value” for a type. Read more
impl Eq for NullDevice
Source§impl ExternalDevice for NullDevice
impl ExternalDevice for NullDevice
Source§impl PartialEq for NullDevice
impl PartialEq for NullDevice
Source§fn eq(&self, other: &NullDevice) -> bool
fn eq(&self, other: &NullDevice) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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