pub struct RcStatefulTester { /* private fields */ }Expand description
A single-threaded shared stateful tester backed by Rc<RefCell<_>>.
Clones of an RcStatefulTester share the same mutable closure state.
Implementations§
Source§impl RcStatefulTester
impl RcStatefulTester
Sourcepub fn and<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
pub fn and<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
Combines this tester with another stateful tester using logical AND.
Sourcepub fn or<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
pub fn or<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
Combines this tester with another stateful tester using logical OR.
Sourcepub fn nand<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
pub fn nand<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
Combines this tester with another stateful tester using logical NAND.
Sourcepub fn xor<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
pub fn xor<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
Combines this tester with another stateful tester using logical XOR.
Sourcepub fn nor<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
pub fn nor<T>(&self, next: T) -> RcStatefulTesterwhere
T: StatefulTester + 'static,
Combines this tester with another stateful tester using logical NOR.
Trait Implementations§
Source§impl Clone for RcStatefulTester
impl Clone for RcStatefulTester
Source§impl Not for &RcStatefulTester
impl Not for &RcStatefulTester
Source§impl Not for RcStatefulTester
impl Not for RcStatefulTester
Source§impl StatefulTester for RcStatefulTester
impl StatefulTester for RcStatefulTester
Source§fn into_box(self) -> BoxStatefulTester
fn into_box(self) -> BoxStatefulTester
Converts this tester to
BoxStatefulTester.Source§fn into_rc(self) -> RcStatefulTester
fn into_rc(self) -> RcStatefulTester
Converts this tester to
RcStatefulTester.Source§fn into_arc(self) -> ArcStatefulTester
fn into_arc(self) -> ArcStatefulTester
Converts this tester to
ArcStatefulTester.Source§fn into_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
fn into_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
Converts this tester to a mutable closure. Read more
Source§fn into_mut_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
fn into_mut_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
Converts this tester to a mutable closure with an explicit method name. Read more
Source§fn to_box(&self) -> BoxStatefulTester
fn to_box(&self) -> BoxStatefulTester
Converts a clone of this tester to
BoxStatefulTester.Source§fn to_rc(&self) -> RcStatefulTester
fn to_rc(&self) -> RcStatefulTester
Converts a clone of this tester to
RcStatefulTester.Source§fn to_arc(&self) -> ArcStatefulTester
fn to_arc(&self) -> ArcStatefulTester
Converts a clone of this tester to
ArcStatefulTester.Auto Trait Implementations§
impl Freeze for RcStatefulTester
impl !RefUnwindSafe for RcStatefulTester
impl !Send for RcStatefulTester
impl !Sync for RcStatefulTester
impl Unpin for RcStatefulTester
impl UnsafeUnpin for RcStatefulTester
impl !UnwindSafe for RcStatefulTester
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