MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / old_tokens_in_range

Method old_tokens_in_range

atomic-core/src/diff/word.rs:408–410  ·  view source on GitHub ↗

Get tokens for an old range. # Panics Panics if the range is out of bounds.

(&self, range: &Range<usize>)

Source from the content-addressed store, hash-verified

406 ///
407 /// Panics if the range is out of bounds.
408 pub fn old_tokens_in_range(&self, range: &Range<usize>) -> &[Token<'a>] {
409 &self.old_tokens[range.clone()]
410 }
411
412 /// Get tokens for a new range.
413 ///

Callers 1

Calls 1

cloneMethod · 0.45

Tested by 1