pub struct BTreeCm<K> { /* private fields */ }
Trait Implementations§
Source§impl<K> Cm for BTreeCm<K>where
K: CheapClone + Ord,
impl<K> Cm for BTreeCm<K>where
K: CheapClone + Ord,
Source§type Error = Infallible
type Error = Infallible
The error type returned by the conflict manager.
Source§fn new(
_options: <BTreeCm<K> as Cm>::Options,
) -> Result<BTreeCm<K>, <BTreeCm<K> as Cm>::Error>
fn new( _options: <BTreeCm<K> as Cm>::Options, ) -> Result<BTreeCm<K>, <BTreeCm<K> as Cm>::Error>
Create a new conflict manager with the given options.
Source§fn has_conflict(&self, other: &BTreeCm<K>) -> bool
fn has_conflict(&self, other: &BTreeCm<K>) -> bool
Returns true if we have a conflict.
Source§impl<K> CmRange for BTreeCm<K>where
K: CheapClone + Ord,
impl<K> CmRange for BTreeCm<K>where
K: CheapClone + Ord,
Source§fn mark_range(&mut self, range: impl RangeBounds<<BTreeCm<K> as Cm>::Key>)
fn mark_range(&mut self, range: impl RangeBounds<<BTreeCm<K> as Cm>::Key>)
Mark the range is read.
Auto Trait Implementations§
impl<K> Freeze for BTreeCm<K>where
K: Freeze,
impl<K> RefUnwindSafe for BTreeCm<K>where
K: RefUnwindSafe,
impl<K> Send for BTreeCm<K>where
K: Send,
impl<K> Sync for BTreeCm<K>where
K: Sync,
impl<K> Unpin for BTreeCm<K>where
K: Unpin,
impl<K> UnwindSafe for BTreeCm<K>where
K: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> AsyncCm for Twhere
T: Cm,
impl<T> AsyncCm for Twhere
T: Cm,
Source§async fn new(
options: <T as AsyncCm>::Options,
) -> Result<T, <T as AsyncCm>::Error>
async fn new( options: <T as AsyncCm>::Options, ) -> Result<T, <T as AsyncCm>::Error>
Create a new conflict manager with the given options.
Source§async fn mark_conflict(&mut self, key: &<T as AsyncCm>::Key)
async fn mark_conflict(&mut self, key: &<T as AsyncCm>::Key)
Mark the key is .
Source§async fn has_conflict(&self, other: &T) -> bool
async fn has_conflict(&self, other: &T) -> bool
Returns true if we have a conflict.
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