pub struct GenericClass {
pub is_py_type: bool,
pub name: StringName,
pub pos: Position,
pub concrete: bool,
pub args: Vec<GenericFunctionArg>,
pub fields: HashSet<GenericField>,
pub functions: HashSet<GenericFunction>,
pub parents: HashSet<GenericParent>,
}
Fields§
§is_py_type: bool
§name: StringName
§pos: Position
§concrete: bool
§args: Vec<GenericFunctionArg>
§fields: HashSet<GenericField>
§functions: HashSet<GenericFunction>
§parents: HashSet<GenericParent>
Implementations§
source§impl GenericClass
impl GenericClass
pub fn try_from_id(id: &AST) -> TypeResult<GenericClass>
pub fn all_pure(self, pure: bool) -> TypeResult<Self>
Trait Implementations§
source§impl Clone for GenericClass
impl Clone for GenericClass
source§fn clone(&self) -> GenericClass
fn clone(&self) -> GenericClass
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 GenericClass
impl Debug for GenericClass
source§impl Hash for GenericClass
impl Hash for GenericClass
source§impl PartialEq<GenericClass> for GenericClass
impl PartialEq<GenericClass> for GenericClass
source§impl TryFrom<&AST> for GenericClass
impl TryFrom<&AST> for GenericClass
source§impl TryFrom<&Classdef> for GenericClass
impl TryFrom<&Classdef> for GenericClass
Create a GenericClass from [ClassDef].
- Init is removed from function list, it is the built-in constructor