Struct tc_transact::lock::Mutable [−][src]
Expand description
A generic impl of Mutate, for convenience.
Implementations
Trait Implementations
type Pending = T
type Pending = TThe type of this state when pending a transaction commit.
Create a new transaction-specific version of this state.
Auto Trait Implementations
impl<T> RefUnwindSafe for Mutable<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for Mutable<T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_into(self) -> Ftype Output = T
type Output = TShould always be Self
pub fn can_cast_from(&F) -> bool
pub fn can_cast_from(&F) -> boolTest if value can be cast into Self.
pub fn opt_cast_from(f: F) -> Option<T>
pub fn opt_cast_from(f: F) -> Option<T>Returns Some(Self) if the source value can be cast into Self, otherwise None.
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err, Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
pub fn can_cast_into(&self) -> bool
pub fn can_cast_into(&self) -> boolTest if self can be cast into T.
pub fn opt_cast_into(self) -> Option<T>
pub fn opt_cast_into(self) -> Option<T>Returns Some(T) if self can be cast into T, otherwise None.
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err, Returns Ok(T) if self can be cast into T, otherwise calls on_err.
pub fn vzip(self) -> V