pub struct ShallowInfo { /* private fields */ }Expand description
Manages shallow state information.
Implementations§
Source§impl ShallowInfo
impl ShallowInfo
Sourcepub fn is_shallow(&self, id: &ChangeId) -> bool
pub fn is_shallow(&self, id: &ChangeId) -> bool
Check if a state is shallow (has grafted parents).
Sourcepub fn shallow_states(&self) -> &HashSet<ChangeId>
pub fn shallow_states(&self) -> &HashSet<ChangeId>
Get all shallow states.
Sourcepub fn add_shallow(&mut self, id: ChangeId) -> Result<()>
pub fn add_shallow(&mut self, id: ChangeId) -> Result<()>
Add a shallow state.
Sourcepub fn remove_shallow(&mut self, id: &ChangeId) -> Result<()>
pub fn remove_shallow(&mut self, id: &ChangeId) -> Result<()>
Remove a shallow state (when history is unshallowed).
Auto Trait Implementations§
impl Freeze for ShallowInfo
impl RefUnwindSafe for ShallowInfo
impl Send for ShallowInfo
impl Sync for ShallowInfo
impl Unpin for ShallowInfo
impl UnsafeUnpin for ShallowInfo
impl UnwindSafe for ShallowInfo
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