pub struct Param {
pub name: Option<Ident>,
pub kind: ParamKind,
}Expand description
A meta-parameter for an error type.
This is the conjuction of all meta-parameters that are used in the error type generation process.
This is used to parse the meta-parameters of an error type, to then be processed accordingly to the position in where they were found.
Fields§
§name: Option<Ident>The identifier of the meta-parameter.
In most cases, this is the identifier which is used to identify which
ParamKind to parse.
kind: ParamKindThe parameter kind of the meta-parameter.
Implementations§
Trait Implementations§
impl Eq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl !Send for Param
impl !Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
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