pub struct GenericField {
pub is_py_type: bool,
pub name: String,
pub pos: Position,
pub mutable: bool,
pub in_class: Option<StringName>,
pub ty: Option<Name>,
pub assigned_to: bool,
}
Fields§
§is_py_type: bool
§name: String
§pos: Position
§mutable: bool
§in_class: Option<StringName>
§ty: Option<Name>
§assigned_to: bool
Implementations§
source§impl GenericField
impl GenericField
pub fn in_class(
self,
class: Option<&StringName>,
_type_def: bool,
pos: Position
) -> TypeResult<GenericField>
pub fn with_ty(&self, name: &Name) -> Self
Trait Implementations§
source§impl Clone for GenericField
impl Clone for GenericField
source§fn clone(&self) -> GenericField
fn clone(&self) -> GenericField
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 more