pub enum Rejection<A, B> {
A(A),
B(B),
}Expand description
One of two error states
Variants§
Trait Implementations§
impl<A, B> Eq for Rejection<A, B>
impl<A, B> StructuralPartialEq for Rejection<A, B>
Source§impl ToSynError for Rejection<FieldsUnnamed, ()>
impl ToSynError for Rejection<FieldsUnnamed, ()>
Source§fn to_syn_err(&self) -> Error
fn to_syn_err(&self) -> Error
Convert this rejection to a
syn::Error.Source§fn into_syn_err(self) -> Errorwhere
Self: Sized,
fn into_syn_err(self) -> Errorwhere
Self: Sized,
Convert this rejection into a
syn::Error.Source§impl ToSynError for Rejection<FieldsNamed, ()>
impl ToSynError for Rejection<FieldsNamed, ()>
Source§fn to_syn_err(&self) -> Error
fn to_syn_err(&self) -> Error
Convert this rejection to a
syn::Error.Source§fn into_syn_err(self) -> Errorwhere
Self: Sized,
fn into_syn_err(self) -> Errorwhere
Self: Sized,
Convert this rejection into a
syn::Error.Source§impl ToSynError for Rejection<DataEnum, DataUnion>
impl ToSynError for Rejection<DataEnum, DataUnion>
Source§fn to_syn_err(&self) -> Error
fn to_syn_err(&self) -> Error
Convert this rejection to a
syn::Error.Source§fn into_syn_err(self) -> Errorwhere
Self: Sized,
fn into_syn_err(self) -> Errorwhere
Self: Sized,
Convert this rejection into a
syn::Error.Source§impl ToSynError for Rejection<DataStruct, DataUnion>
impl ToSynError for Rejection<DataStruct, DataUnion>
Source§fn to_syn_err(&self) -> Error
fn to_syn_err(&self) -> Error
Convert this rejection to a
syn::Error.Source§fn into_syn_err(self) -> Errorwhere
Self: Sized,
fn into_syn_err(self) -> Errorwhere
Self: Sized,
Convert this rejection into a
syn::Error.Source§impl ToSynError for Rejection<DataStruct, DataEnum>
impl ToSynError for Rejection<DataStruct, DataEnum>
Source§fn to_syn_err(&self) -> Error
fn to_syn_err(&self) -> Error
Convert this rejection to a
syn::Error.Source§fn into_syn_err(self) -> Errorwhere
Self: Sized,
fn into_syn_err(self) -> Errorwhere
Self: Sized,
Convert this rejection into a
syn::Error.Auto Trait Implementations§
impl<A, B> Freeze for Rejection<A, B>
impl<A, B> RefUnwindSafe for Rejection<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Rejection<A, B>
impl<A, B> Sync for Rejection<A, B>
impl<A, B> Unpin for Rejection<A, B>
impl<A, B> UnsafeUnpin for Rejection<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Rejection<A, B>where
A: UnwindSafe,
B: 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