pub struct GenericFunction {
pub is_py_type: bool,
pub name: StringName,
pub pure: bool,
pub pos: Position,
pub arguments: Vec<GenericFunctionArg>,
pub raises: Name,
pub in_class: Option<StringName>,
pub ret_ty: Option<Name>,
}
Fields§
§is_py_type: bool
§name: StringName
§pure: bool
§pos: Position
§arguments: Vec<GenericFunctionArg>
§raises: Name
§in_class: Option<StringName>
§ret_ty: Option<Name>
Implementations§
source§impl GenericFunction
impl GenericFunction
pub fn pure(self, pure: bool) -> Self
pub fn in_class(
self,
clss: Option<&StringName>,
_ty_def: bool,
pos: Position
) -> TypeResult<GenericFunction>
Trait Implementations§
source§impl Clone for GenericFunction
impl Clone for GenericFunction
source§fn clone(&self) -> GenericFunction
fn clone(&self) -> GenericFunction
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 GenericFunction
impl Debug for GenericFunction
source§impl From<&Funcdef> for GenericFunction
impl From<&Funcdef> for GenericFunction
source§fn from(func_def: &Funcdef) -> GenericFunction
fn from(func_def: &Funcdef) -> GenericFunction
Converts to this type from the input type.