enum GoodOrError<T, TAs, I> {
Good(T),
Error(PhantomData<(TAs, I)>),
}Variants§
Good(T)
Error(PhantomData<(TAs, I)>)
Trait Implementations§
Source§impl<'de, T, TAs, I> Deserialize<'de> for GoodOrError<T, TAs, I>where
TAs: DeserializeAs<'de, T>,
I: InspectError,
impl<'de, T, TAs, I> Deserialize<'de> for GoodOrError<T, TAs, I>where
TAs: DeserializeAs<'de, T>,
I: InspectError,
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, I> Freeze for GoodOrError<T, TAs, I>where
T: Freeze,
impl<T, TAs, I> RefUnwindSafe for GoodOrError<T, TAs, I>
impl<T, TAs, I> Send for GoodOrError<T, TAs, I>
impl<T, TAs, I> Sync for GoodOrError<T, TAs, I>
impl<T, TAs, I> Unpin for GoodOrError<T, TAs, I>
impl<T, TAs, I> UnsafeUnpin for GoodOrError<T, TAs, I>where
T: UnsafeUnpin,
impl<T, TAs, I> UnwindSafe for GoodOrError<T, TAs, I>
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