Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
42
impl ClampedInto<usize> for i16 {
43
fn clamped_into(self) -> usize {
44
if self < 0 { 0 } else { self as usize }
45
}
46
}
47
48
impl ClampedInto<i16> for u16 {
Callers
7
requested_size_pixels
Function · 0.80
new
Method · 0.80
fill_polygon
Function · 0.80
draw_rect
Function · 0.80
rect_points
Function · 0.80
open_line
Method · 0.80
clear
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected