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

Method range

std/src/console/linebuffer.rs:66–69  ·  view source on GitHub ↗

Extracts a range of characters from this buffer.

(&self, start_pos: usize, end_pos: usize)

Source from the content-addressed store, hash-verified

64
65 /// Extracts a range of characters from this buffer.
66 pub fn range(&self, start_pos: usize, end_pos: usize) -> String {
67 let count = end_pos.saturating_sub(start_pos);
68 self.chars().skip(start_pos).take(count).collect()
69 }
70
71 /// Checks if this buffer is empty or not.
72 pub fn is_empty(&self) -> bool {

Callers 3

render_lineMethod · 0.80
refreshMethod · 0.80
refresh_current_lineMethod · 0.80

Calls 1

charsMethod · 0.80

Tested by

no test coverage detected