pub enum ThreadLocal {
V1,
V2,
}
Expand description
Which version of the thread_local
attribute is enabled.
Variants§
Trait Implementations§
Source§impl Clone for ThreadLocal
impl Clone for ThreadLocal
Source§fn clone(&self) -> ThreadLocal
fn clone(&self) -> ThreadLocal
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ThreadLocal
impl Debug for ThreadLocal
Source§impl PartialEq for ThreadLocal
impl PartialEq for ThreadLocal
impl Copy for ThreadLocal
impl Eq for ThreadLocal
impl StructuralPartialEq for ThreadLocal
Auto Trait Implementations§
impl Freeze for ThreadLocal
impl RefUnwindSafe for ThreadLocal
impl Send for ThreadLocal
impl Sync for ThreadLocal
impl Unpin for ThreadLocal
impl UnwindSafe for ThreadLocal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more