Enum key_native::key::LitrRef
source · pub enum LitrRef {
Ref(*mut Litr),
Own(Litr),
}Expand description
Litr的引用(是有生命周期的)
注意如果你需要将Litr转移到别的线程等需要保证其生命周期的行为时
调用own方法直接获取Litr的所有权
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LitrRef
impl !RefUnwindSafe for LitrRef
impl !Send for LitrRef
impl !Sync for LitrRef
impl Unpin for LitrRef
impl !UnwindSafe for LitrRef
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