enum GoodOrError<T, TAs> {
Good(T),
Error(PhantomData<TAs>),
}Variants§
Good(T)
Error(PhantomData<TAs>)
Trait Implementations§
Source§impl<'de, T, TAs> Deserialize<'de> for GoodOrError<T, TAs>where
TAs: DeserializeAs<'de, T>,
impl<'de, T, TAs> Deserialize<'de> for GoodOrError<T, TAs>where
TAs: DeserializeAs<'de, T>,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T, TAs> Freeze for GoodOrError<T, TAs>where
T: Freeze,
impl<T, TAs> RefUnwindSafe for GoodOrError<T, TAs>where
T: RefUnwindSafe,
TAs: RefUnwindSafe,
impl<T, TAs> Send for GoodOrError<T, TAs>
impl<T, TAs> Sync for GoodOrError<T, TAs>
impl<T, TAs> Unpin for GoodOrError<T, TAs>
impl<T, TAs> UnsafeUnpin for GoodOrError<T, TAs>where
T: UnsafeUnpin,
impl<T, TAs> UnwindSafe for GoodOrError<T, TAs>where
T: UnwindSafe,
TAs: UnwindSafe,
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