Exemple #1
0
 public PyClass(string name, DocComments docComments, RustAttributes attributes)
 {
     Name        = name;
     DocComments = docComments;
     Attributes  = attributes;
     Methods     = new List <PyMethod>();
 }
Exemple #2
0
 public PyMethod(string name, DocComments docComments, RustAttributes attributes, List <PyMethodArg> arguments, string rustReturnType)
 {
     Name           = name;
     DocComments    = docComments;
     Attributes     = attributes;
     Arguments      = arguments;
     RustReturnType = rustReturnType;
 }