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,
§type Error = Infallible
type Error = Infallible
The error type returned by the conflict manager.
source§fn new(options: Self::Options) -> Result<Self, Self::Error>
fn new(options: Self::Options) -> Result<Self, Self::Error>
Create a new conflict manager with the given options.
source§fn mark_conflict(&mut self, key: &Self::Key)
fn mark_conflict(&mut self, key: &Self::Key)
Mark the key is .
source§fn has_conflict(&self, other: &Self) -> bool
fn has_conflict(&self, other: &Self) -> bool
Returns true if we have a conflict.
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