pub struct DebugWidgetMock<T>where
T: Debug,{ /* private fields */ }Expand description
A mock component display some value at runtime
Implementations§
Source§impl<T> DebugWidgetMock<T>where
T: Debug,
impl<T> DebugWidgetMock<T>where
T: Debug,
Sourcepub fn with_value(value: T) -> Self
pub fn with_value(value: T) -> Self
Create a new DebugWidgetMock component with the given value to debug
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Create a new DebugWidgetMock component with no value yet.
Call [set] to set the value later.
Trait Implementations§
Source§impl<T> Debug for DebugWidgetMock<T>
impl<T> Debug for DebugWidgetMock<T>
Source§impl<T> Default for DebugWidgetMock<T>
impl<T> Default for DebugWidgetMock<T>
Source§fn default() -> DebugWidgetMock<T>
fn default() -> DebugWidgetMock<T>
Returns the “default value” for a type. Read more
Source§impl<T> MockComponent for DebugWidgetMock<T>where
T: Debug,
impl<T> MockComponent for DebugWidgetMock<T>where
T: Debug,
Auto Trait Implementations§
impl<T> Freeze for DebugWidgetMock<T>
impl<T> RefUnwindSafe for DebugWidgetMock<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for DebugWidgetMock<T>
impl<T> Sync for DebugWidgetMock<T>
impl<T> Unpin for DebugWidgetMock<T>
impl<T> UnsafeUnpin for DebugWidgetMock<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for DebugWidgetMock<T>where
Option<T>: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more