pub struct SetOnceError<T>(pub T);展开描述
可从 SetOnce::set 返回的错误。
此错误表示在调用 set 时 SetOnce 已被初始化
Tuple Fields§
§0: Ttrait 实现§
源代码§impl<T: Debug> Debug for SetOnceError<T>
impl<T: Debug> Debug for SetOnceError<T>
源代码§impl<T> Display for SetOnceError<T>
impl<T> Display for SetOnceError<T>
源代码§impl<T: Debug> Error for SetOnceError<T>
impl<T: Debug> Error for SetOnceError<T>
源代码§impl<T: PartialEq> PartialEq for SetOnceError<T>
impl<T: PartialEq> PartialEq for SetOnceError<T>
impl<T: Eq> Eq for SetOnceError<T>
impl<T> StructuralPartialEq for SetOnceError<T>
自动 trait 实现§
impl<T> Freeze for SetOnceError<T>where
T: Freeze,
impl<T> RefUnwindSafe for SetOnceError<T>where
T: RefUnwindSafe,
impl<T> Send for SetOnceError<T>where
T: Send,
impl<T> Sync for SetOnceError<T>where
T: Sync,
impl<T> Unpin for SetOnceError<T>where
T: Unpin,
impl<T> UnsafeUnpin for SetOnceError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SetOnceError<T>where
T: UnwindSafe,
blanket 实现§
源代码§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. 更多信息