pub enum DocParam {
Arg {
name: String,
docs: Option<DocString>,
typ: Ty,
default_value: Option<String>,
},
NoArgs,
OnlyPosBefore,
Args {
name: String,
docs: Option<DocString>,
typ: Ty,
},
Kwargs {
name: String,
docs: Option<DocString>,
typ: Ty,
},
}
Expand description
A single parameter of a function.
Variants§
Arg
Fields
A regular parameter that may or may not have a default value.
NoArgs
Represents the “*” argument.
OnlyPosBefore
Represents the “/” argument from PEP 570.
Args
Represents the “*args” style of argument.
Kwargs
Represents the “**kwargs” style of argument.
Implementations§
Trait Implementations§
source§impl Allocative for DocParam
impl Allocative for DocParam
source§impl PartialEq for DocParam
impl PartialEq for DocParam
impl StructuralPartialEq for DocParam
Auto Trait Implementations§
impl !RefUnwindSafe for DocParam
impl Send for DocParam
impl Sync for DocParam
impl Unpin for DocParam
impl !UnwindSafe for DocParam
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