Struct SetOnceError
pub struct SetOnceError<T>(pub T);
Error that can be returned from SetOnce::set.
This error means that the SetOnce was already initialized when
set was called
Fields
0: T
Trait Implementations
impl<T> Display for SetOnceError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Debug> Debug for SetOnceError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Debug> Error for SetOnceError<T>
impl<T: Eq> Eq for SetOnceError<T>
impl<T: PartialEq> PartialEq for SetOnceError<T>
fn eq(&self, other: &SetOnceError<T>) -> bool
impl<T: PartialEq> StructuralPartialEq for SetOnceError<T>
Auto Trait Implementations
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 Implementations
impl<T> Any for SetOnceError<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SetOnceError<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SetOnceError<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for SetOnceError<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for SetOnceError<T>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for SetOnceError<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SetOnceError<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SetOnceError<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>