pub struct TokenValueWrapper(pub TokenValue);Expand description
中文 | English TokenValue 包装器 - 实现 StateData trait | TokenValue wrapper - implements StateData trait
Tuple Fields§
§0: TokenValueTrait Implementations§
Source§impl Clone for TokenValueWrapper
impl Clone for TokenValueWrapper
Source§fn clone(&self) -> TokenValueWrapper
fn clone(&self) -> TokenValueWrapper
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<TokenValue> for TokenValueWrapper
impl From<TokenValue> for TokenValueWrapper
Source§fn from(token: TokenValue) -> Self
fn from(token: TokenValue) -> Self
Converts to this type from the input type.
impl StateData for TokenValueWrapper
Auto Trait Implementations§
impl Freeze for TokenValueWrapper
impl RefUnwindSafe for TokenValueWrapper
impl Send for TokenValueWrapper
impl Sync for TokenValueWrapper
impl Unpin for TokenValueWrapper
impl UnwindSafe for TokenValueWrapper
Blanket Implementations§
§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)Source§impl<T> FromState for Twhere
T: StateData,
impl<T> FromState for Twhere
T: StateData,
Source§fn try_borrow_from(state: &State) -> Option<&T>
fn try_borrow_from(state: &State) -> Option<&T>
Tries to borrow a value from the
State storage. Read moreSource§fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
Tries to mutably borrow a value from the
State storage. Read moreSource§fn borrow_mut_from(state: &mut State) -> &mut T
fn borrow_mut_from(state: &mut State) -> &mut T
Mutably borrows a value from the
State storage. Read more