pub enum ParamKind {
Inline(InlineOptions),
Import(ImportRoot),
Format(Format),
Source(FieldRef),
Transparent(Transparent),
From,
}Expand description
The kind of meta-parameter.
Variants§
Inline(InlineOptions)
The inline behavior of the error type.
Import(ImportRoot)
The import root of the error type.
Format(Format)
The format string of the error type.
Source(FieldRef)
The source-forwarding behavior of the error type.
Transparent(Transparent)
A transparent error type.
This is useful for new-type wrappers that are transparent over some other type.
From
The from forwarding behavior of the error type.
This is useful for new-type wrappers that are completely opaque to the error type.
Trait Implementations§
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl !Send for ParamKind
impl !Sync for ParamKind
impl Unpin for ParamKind
impl UnwindSafe for ParamKind
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