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

Method new_tokens_in_range

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

Get tokens for a new range. # Panics Panics if the range is out of bounds.

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

Source from the content-addressed store, hash-verified

415 ///
416 /// Panics if the range is out of bounds.
417 pub fn new_tokens_in_range(&self, range: &Range<usize>) -> &[Token<'a>] {
418 &self.new_tokens[range.clone()]
419 }
420
421 /// Get the concatenated content of old tokens in a range.
422 pub fn old_content_in_range(&self, range: &Range<usize>) -> String {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected