MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / len_before_body

Method len_before_body

euralios_std/src/path.rs:705–709  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

703 // Given the iteration so far, how much of the pre-State::Body path is left?
704 #[inline]
705 fn len_before_body(&self) -> usize {
706 let root = if self.front <= State::StartDir && self.has_physical_root { 1 } else { 0 };
707 let cur_dir = if self.front <= State::StartDir && self.include_cur_dir() { 1 } else { 0 };
708 root + cur_dir
709 }
710
711 // is the iteration complete?
712 #[inline]

Callers 3

trim_rightMethod · 0.80
next_backMethod · 0.80

Calls 1

include_cur_dirMethod · 0.80

Tested by

no test coverage detected