pub struct PathCache<'a> {
pub cache: HashMap<PathData, Path>,
pub intervaltree_cache: HashMap<Path, IntervalTree<i64, NodeIntervalBlock>>,
pub conn: &'a GraphConnection,
}Fields§
§cache: HashMap<PathData, Path>§intervaltree_cache: HashMap<Path, IntervalTree<i64, NodeIntervalBlock>>§conn: &'a GraphConnectionImplementations§
Source§impl<'a> PathCache<'a>
impl<'a> PathCache<'a>
pub fn new(conn: &'a GraphConnection) -> PathCache<'a>
pub fn lookup( path_cache: &mut PathCache<'_>, block_group_id: &HashId, name: String, ) -> Path
pub fn get_intervaltree<'b>( path_cache: &'b PathCache<'_>, path: &Path, ) -> Option<&'b IntervalTree<i64, NodeIntervalBlock>>
Auto Trait Implementations§
impl<'a> Freeze for PathCache<'a>
impl<'a> !RefUnwindSafe for PathCache<'a>
impl<'a> !Send for PathCache<'a>
impl<'a> !Sync for PathCache<'a>
impl<'a> Unpin for PathCache<'a>
impl<'a> UnsafeUnpin for PathCache<'a>
impl<'a> !UnwindSafe for PathCache<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more