MCPcopy Index your code
hub / github.com/endbasic/endbasic / clamped_into

Method clamped_into

std/src/console/graphics.rs:43–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41
42impl ClampedInto<usize> for i16 {
43 fn clamped_into(self) -> usize {
44 if self < 0 { 0 } else { self as usize }
45 }
46}
47
48impl ClampedInto<i16> for u16 {

Callers 7

requested_size_pixelsFunction · 0.80
newMethod · 0.80
fill_polygonFunction · 0.80
draw_rectFunction · 0.80
rect_pointsFunction · 0.80
open_lineMethod · 0.80
clearMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected