Beispiel #1
0
 public PyClass(string name, DocComments docComments, RustAttributes attributes)
 {
     Name        = name;
     DocComments = docComments;
     Attributes  = attributes;
     Methods     = new List <PyMethod>();
 }
Beispiel #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;
 }