pub struct Option<O>(pub O);Expand description
Wrapper for a transaction state option tag.
Tuple Fields§
§0: OImplementations§
Trait Implementations§
impl<O: Copy> Copy for Option<O>
impl<O: Eq> Eq for Option<O>
Source§impl<T, O: StateOption<T>> StateOption<T> for Option<O>
impl<T, O: StateOption<T>> StateOption<T> for Option<O>
Source§type Saver = <O as StateOption<T>>::Saver
type Saver = <O as StateOption<T>>::Saver
The RAII
StateSaver type instantiated for this option.Source§fn save_state(&self) -> Self::Saver
fn save_state(&self) -> Self::Saver
Saves the environment state for the duration of the transaction and returns the RAII
StateSaver.impl<O: PartialEq> StructuralPartialEq for Option<O>
Auto Trait Implementations§
impl<O> Freeze for Option<O>where
O: Freeze,
impl<O> RefUnwindSafe for Option<O>where
O: RefUnwindSafe,
impl<O> Send for Option<O>where
O: Send,
impl<O> Sync for Option<O>where
O: Sync,
impl<O> Unpin for Option<O>where
O: Unpin,
impl<O> UnsafeUnpin for Option<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for Option<O>where
O: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)