public void drawHexagon(int x, int y, int edgeLength, int thickness, Graphics2D g2d) {
int cosEdgeLength(x - edgeLength, y + cosEdgeLength, x - edgeLength, y + cosEdgeLength + edgeLength, g2d, thickness);drawBresenhamLine(x + edgeLength, y + cosEdgeLength, x + edgeLength, y + c
我有这样一件事: type G2d<'a> = GfxGraphics<'a, Resources, CommandBuffer>; 如何将其作为字段包含到结构中?pub struct Dc g : G2d,} 但它提供了: expected named lifetime parameter 我试过了: pub structDc g : &'a mut G2d<'a>,}
wi