Struct spwf::SharedData

source ·
pub struct SharedData {
    pub visit_count: u32,
}

Fields§

§visit_count: u32

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AnyExt for T

source§

fn drop(self)

Chainable drop
source§

fn into_some(self) -> Option<Self>

Convert value to Some(value)
source§

fn into_ok<B>(self) -> Result<Self, B>

Convert value to Ok(value)
source§

fn into_err<A>(self) -> Result<A, Self>

Convert value to Err(value)
source§

fn into_box(self) -> Box<Self, Global>

Convert value to Box::new(value)
source§

fn into_cell(self) -> Cell<Self>

Convert value to Cell::new(value)
source§

fn into_refcell(self) -> RefCell<Self>

Convert value to RefCell::new(value)
source§

fn into_rc(self) -> Rc<Self>

Convert value to Rc::new(value)
source§

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>>

Convert value to Rc::new(RefCell::new(value))
source§

fn into_arc(self) -> Arc<Self>

Convert value to Arc::new(value)
source§

fn type_name(self) -> &'static str

Consumes self, returns the name of its type as a string slice and the receiver self. Read more
source§

fn type_size(self) -> usize

Consumes self, returns the size of its type in number and the receiver self. Read more
source§

fn type_name_with_value(self) -> (&'static str, Self)

Consumes self, returns the name of its type as a string slice and the receiver self. Read more
source§

fn type_size_with_value(self) -> (usize, Self)

Consumes self, returns the size of its type in number and the receiver self. Read more
source§

fn if_take(self, f: impl FnOnce(&Self) -> bool) -> Option<Self>

Returns Some(self) if it satisfies the given predicate function, or None if it doesn’t. Read more
source§

fn if_not_take(self, f: impl FnOnce(&Self) -> bool) -> Option<Self>

Returns Some(self) if it doesn’t satisfy the given predicate function, or None if it does. Read more
source§

impl<T, R> AnyExt1<R> for T

source§

fn y(self, f: impl Copy + Fn(&dyn Fn(Self) -> R, Self) -> R) -> R

The Y Combinator Read more
source§

fn if_then( self, if: impl FnOnce(&Self) -> bool, then: impl FnOnce(Self) -> R ) -> Option<R>

Returns Some(f()) if it satisfies the given predicate function, or None if it doesn’t. Read more
source§

fn if_not_then( self, unless: impl FnOnce(&Self) -> bool, then: impl FnOnce(Self) -> R ) -> Option<R>

Returns Some(f()) if it doesn’t satisfy the given predicate function, or None if it does. Read more
source§

impl<T> AsyncExt for T

source§

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>>

Convert self to tokio’s Arc<Mutex<Self>>
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> Twhere Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, R> Op<R> for T

source§

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>,

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>,

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>,

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>,

The continuation supporting for Rem operator Read more
source§

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,

The continuation supporting for Not operator
source§

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>,

The continuation supporting for Shr operator
source§

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>,

The continuation supporting for BitOr operator
source§

fn bit_xor_c(self, other: Self, k: impl FnOnce(Self::Output) -> R) -> Rwhere Self: BitXor<Self>,

The continuation supporting for BitXor operator
source§

fn cmp_c(&self, other: &Self, k: impl FnOnce(Ordering) -> R) -> Rwhere Self: Ord,

The continuation supporting for the cmp function of Ord operator
source§

impl<T, R> Pipe<R> for Twhere T: ?Sized,

source§

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

Borrows self and passes that borrow into the pipe function. Read more
source§

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 more
source§

fn pipe_borrow<'a, B>(&'a self, f: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B>(&'a mut self, f: impl FnOnce(&'a mut B) -> R) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

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,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T>(&'a self, f: impl FnOnce(&'a T) -> R) -> Rwhere Self: Deref<Target = T>, T: 'a + ?Sized,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T>(&'a mut self, f: impl FnOnce(&'a mut T) -> R) -> Rwhere Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> StdAnyExt for T

source§

fn dbg(self) -> Selfwhere Self: Debug,

System output -> with :#?’s println!. Read more
source§

fn sout(self) -> Selfwhere Self: Debug,

System output -> with :?’s println!. Read more
source§

fn echo(self) -> Selfwhere Self: Display,

Consumes self, println! as it is, returns self.
source§

fn into_mutex(self) -> Mutex<Self>

Convert value to Mutex::new(value)
source§

fn into_arc_mutex(self) -> Arc<Mutex<Self>>

Convert value to Arc::new(Mutex::new(value))
source§

fn into_rwlock(self) -> RwLock<Self>

Convert value to RwLock::new(value)
source§

fn into_arc_rwlock(self) -> Arc<RwLock<Self>>

Convert value to Arc::new(RwLock::new(value))
source§

impl<T, R> StdAnyExt1<R> for T

source§

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)

Executes the given closure block, returns the duration of elapsed time interval and the result of the closure execution.
source§

fn measure_time_with_self(self, f: impl FnOnce(&Self) -> R) -> (Duration, Self)

Executes the given closure block, returns the duration of elapsed time interval and the receiver self.
source§

fn measure_time_with_mut_self( self, f: impl FnOnce(&mut Self) -> R ) -> (Duration, Self)

Executes the given closure block, returns the duration of elapsed time interval and the receiver self.
source§

impl<T, R> Tap<R> for T

source§

fn tap(self, f: impl FnOnce(&Self) -> Ret) -> Self

Immutable access to a value. Read more
source§

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,

Immutable access to the Borrow<B> of a value. Read more
source§

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 more
source§

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 more
source§

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 more
source§

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 more
source§

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 more
source§

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

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,

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,

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,

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,

Calls .tap_as_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, f: impl FnOnce(&T) -> Ret) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, f: impl FnOnce(&mut T) -> Ret) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.