pub struct GenericFunctionArg {
pub is_py_type: bool,
pub name: String,
pub pos: Position,
pub has_default: bool,
pub vararg: bool,
pub mutable: bool,
pub ty: Option<Name>,
}
Fields§
§is_py_type: bool
§name: String
§pos: Position
§has_default: bool
§vararg: bool
§mutable: bool
§ty: Option<Name>
Implementations§
source§impl GenericFunctionArg
impl GenericFunctionArg
pub fn in_class(
self,
class: Option<&StringName>
) -> TypeResult<GenericFunctionArg>
Trait Implementations§
source§impl Clone for GenericFunctionArg
impl Clone for GenericFunctionArg
source§fn clone(&self) -> GenericFunctionArg
fn clone(&self) -> GenericFunctionArg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenericFunctionArg
impl Debug for GenericFunctionArg
source§impl From<(&String, &Option<Expression>, &Option<Expression>)> for GenericFunctionArg
impl From<(&String, &Option<Expression>, &Option<Expression>)> for GenericFunctionArg
source§fn from(
(name, ty, default): (&String, &Option<Expression>, &Option<Expression>)
) -> GenericFunctionArg
fn from(
(name, ty, default): (&String, &Option<Expression>, &Option<Expression>)
) -> GenericFunctionArg
Converts to this type from the input type.