Std.Ui.Canvas.fill
1 declaration
fn
fill: &Std.Ui.Canvas.Canvas -> Std.Ui.Canvas.Rect -> Std.Ui.Canvas.Color -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Canvas.CanvasError]This is a callable function.
What it does
The canvas after filling a rectangle.
A zero-area rectangle is a no-op. Negative extents are refused because
interpreting them by flipping an edge would hide a layout defect.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Result makes success and recoverable failure part of the function's type.
