Struct spwf::SharedData
source · pub struct SharedData {
pub visit_count: u32,
}
Fields§
§visit_count: u32
Auto Trait Implementations§
Blanket Implementations§
source§fn into_refcell(self) -> RefCell<Self>
fn into_refcell(self) -> RefCell<Self>
Convert
value
to RefCell::new(value)
source§fn into_rc_cell(self) -> Rc<Cell<Self>>
fn into_rc_cell(self) -> Rc<Cell<Self>>
Convert
value
to Rc::new(Cell::new(value))
source§fn into_rc_refcell(self) -> Rc<RefCell<Self>>
fn into_rc_refcell(self) -> Rc<RefCell<Self>>
Convert
value
to Rc::new(RefCell::new(value))
source§fn type_name_with_value(self) -> (&'static str, Self)
fn type_name_with_value(self) -> (&'static str, Self)
source§fn type_size_with_value(self) -> (usize, Self)
fn type_size_with_value(self) -> (usize, Self)
source§fn into_tokio_mutex(self) -> Mutex<Self>
fn into_tokio_mutex(self) -> Mutex<Self>
Convert
value
to tokio::sync::Mutex::new(value)
source§fn into_tokio_arc_mutex(self) -> Arc<Mutex<Self>>
fn into_tokio_arc_mutex(self) -> Arc<Mutex<Self>>
Convert
self
to tokio
’s Arc<Mutex<Self>>
source§fn add_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Add<Self>,
fn add_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Add<Self>,
The continuation supporting for Add operator Read more
source§fn sub_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Sub<Self>,
fn sub_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Sub<Self>,
The continuation supporting for Sub operator Read more
source§fn mul_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Mul<Self>,
fn mul_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Mul<Self>,
The continuation supporting for Mul operator Read more
source§fn div_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Div<Self>,
fn div_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Div<Self>,
The continuation supporting for Div operator Read more
source§fn rem_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Rem<Self>,
fn rem_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Rem<Self>,
The continuation supporting for Rem operator Read more
source§fn neg_c(self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Neg,
fn neg_c(self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Neg,
The continuation supporting for Neg operator
source§fn not_c(self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Not,
fn not_c(self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Not,
The continuation supporting for Not operator
source§fn shl_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Shl<Self>,
fn shl_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Shl<Self>,
The continuation supporting for Shl operator
source§fn shr_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: Shr<Self>,
fn shr_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: Shr<Self>,
The continuation supporting for Shr operator
source§fn bit_and_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: BitAnd<Self>,
fn bit_and_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: BitAnd<Self>,
The continuation supporting for BitAnd operator
source§fn bit_or_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere
Self: BitOr<Self>,
fn bit_or_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: BitOr<Self>,
The continuation supporting for BitOr operator
source§fn pipe(self, f: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe(self, f: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
source§fn pipe_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R
fn pipe_ref<'a>(&'a self, f: impl FnOnce(&'a Self) -> R) -> R
Borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_mut<'a>(&'a mut self, f: impl FnOnce(&'a mut Self) -> R) -> R
fn pipe_mut<'a>(&'a mut self, f: impl FnOnce(&'a mut Self) -> R) -> R
Mutably borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B>(&'a self, f: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
fn pipe_borrow<'a, B>(&'a self, f: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized,
source§fn pipe_borrow_mut<'a, B>(&'a mut self, f: impl FnOnce(&'a mut B) -> R) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
fn pipe_borrow_mut<'a, B>(&'a mut self, f: impl FnOnce(&'a mut B) -> R) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized,
source§fn pipe_as_ref<'a, U>(&'a self, f: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
fn pipe_as_ref<'a, U>(&'a self, f: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized,
Borrows
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U>(&'a mut self, f: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
fn pipe_as_mut<'a, U>(&'a mut self, f: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized,
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.source§fn into_mutex(self) -> Mutex<Self>
fn into_mutex(self) -> Mutex<Self>
Convert
value
to Mutex::new(value)
source§fn into_arc_mutex(self) -> Arc<Mutex<Self>>
fn into_arc_mutex(self) -> Arc<Mutex<Self>>
Convert
value
to Arc::new(Mutex::new(value))
source§fn into_rwlock(self) -> RwLock<Self>
fn into_rwlock(self) -> RwLock<Self>
Convert
value
to RwLock::new(value)
source§fn into_arc_rwlock(self) -> Arc<RwLock<Self>>
fn into_arc_rwlock(self) -> Arc<RwLock<Self>>
Convert
value
to Arc::new(RwLock::new(value))
source§fn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration
fn measure_time(self, f: impl FnOnce(Self) -> R) -> Duration
Executes the given closure block and returns the duration of elapsed time interval.
source§fn measure_time_with_value(self, f: impl FnOnce(Self) -> R) -> (Duration, R)
fn measure_time_with_value(self, f: impl FnOnce(Self) -> R) -> (Duration, R)
Executes the given closure block,
returns the duration of elapsed time interval and the result of the closure execution.
source§fn tap_mut(self, f: impl FnOnce(&mut Self) -> Ret) -> Self
fn tap_mut(self, f: impl FnOnce(&mut Self) -> Ret) -> Self
Mutable access to a value. Read more
source§fn tap_borrow<B>(self, f: impl FnOnce(&B) -> Ret) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, f: impl FnOnce(&B) -> Ret) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Immutable access to the
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, f: impl FnOnce(&mut B) -> Ret) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, f: impl FnOnce(&mut B) -> Ret) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
Mutable access to the
BorrowMut<B>
of a value. Read moresource§fn tap_as_ref<R>(self, f: impl FnOnce(&R) -> Ret) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_as_ref<R>(self, f: impl FnOnce(&R) -> Ret) -> Selfwhere Self: AsRef<R>, R: ?Sized,
Immutable access to the
AsRef<R>
view of a value. Read moresource§fn tap_as_mut<R>(self, f: impl FnOnce(&mut R) -> Ret) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_as_mut<R>(self, f: impl FnOnce(&mut R) -> Ret) -> Selfwhere Self: AsMut<R>, R: ?Sized,
Mutable access to the
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, f: impl FnOnce(&T) -> Ret) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, f: impl FnOnce(&T) -> Ret) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,
Immutable access to the
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, f: impl FnOnce(&mut T) -> Ret) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, f: impl FnOnce(&mut T) -> Ret) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,
Mutable access to the
Deref::Target
of a value. Read moresource§fn tap_dbg(self, f: impl FnOnce(&Self) -> Ret) -> Self
fn tap_dbg(self, f: impl FnOnce(&Self) -> Ret) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, f: impl FnOnce(&mut Self) -> Ret) -> Self
fn tap_mut_dbg(self, f: impl FnOnce(&mut Self) -> Ret) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, f: impl FnOnce(&B) -> Ret) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, f: impl FnOnce(&B) -> Ret) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, f: impl FnOnce(&mut B) -> Ret) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, f: impl FnOnce(&mut B) -> Ret) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_as_ref_dbg<R>(self, f: impl FnOnce(&R) -> Ret) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_as_ref_dbg<R>(self, f: impl FnOnce(&R) -> Ret) -> Selfwhere Self: AsRef<R>, R: ?Sized,
Calls
.tap_as_ref()
only in debug builds, and is erased in release
builds.source§fn tap_as_mut_dbg<R>(self, f: impl FnOnce(&mut R) -> Ret) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_as_mut_dbg<R>(self, f: impl FnOnce(&mut R) -> Ret) -> Selfwhere Self: AsMut<R>, R: ?Sized,
Calls
.tap_as_mut()
only in debug builds, and is erased in release
builds.