pub struct HistoryPolicy { /* private fields */ }Expand description
History decisions for an external, host-owned graph frontier. The host supplies the shortest commit distance from wanted roots (starting at one) and persists deduplication, exclusions and work budgets outside this value.
Implementations§
Source§impl HistoryPolicy
impl HistoryPolicy
Sourcepub const fn boundary_probe() -> Self
pub const fn boundary_probe() -> Self
Measure distances to existing client boundaries without crossing them. A host only needs commit-parent and tag-target edges during this probe.
pub const fn follows_parents(self, depth: u32, client_boundary: bool) -> bool
pub const fn parent_depth(self, depth: u32) -> u32
Trait Implementations§
Source§impl Clone for HistoryPolicy
impl Clone for HistoryPolicy
impl Copy for HistoryPolicy
Source§impl Debug for HistoryPolicy
impl Debug for HistoryPolicy
Auto Trait Implementations§
impl Freeze for HistoryPolicy
impl RefUnwindSafe for HistoryPolicy
impl Send for HistoryPolicy
impl Sync for HistoryPolicy
impl Unpin for HistoryPolicy
impl UnsafeUnpin for HistoryPolicy
impl UnwindSafe for HistoryPolicy
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