Struct brb_dt_orswot::BRBOrswot [−][src]
BRB wrapper for an Orswot CRDT
Implementations
impl<A: Hash + Ord + Clone + Debug, M: Clone + Eq + Hash> BRBOrswot<A, M>
[src]
pub fn add(&self, member: M) -> Op<M, A>
[src]
Generates an Orswot Add operation. (but does not apply it)
pub fn rm(&self, member: M) -> Op<M, A>
[src]
Generates an Orswot Rm operation. (but does not apply it)
pub fn contains(&self, member: &M) -> bool
[src]
Check if the set contains a member
pub fn actor(&self) -> &A
[src]
Retrieves the BRB actor
pub fn orswot(&self) -> &Orswot<M, A>
[src]
Retrieves the underlying orswot
pub fn read(&self) -> HashSet<M>
[src]
Read from the underlying orswot
Trait Implementations
impl<A: Hash + Ord + Clone + Debug + Serialize + 'static, M: Clone + Eq + Hash + Debug + Serialize> BRBDataType<A> for BRBOrswot<A, M>
[src]
type Op = Op<M, A>
The set of ops this data type accepts
type ValidationError = ValidationError<<Orswot<M, A> as CmRDT>::Validation>
A validation error specific to this data type.
fn new(actor: A) -> Self
[src]
fn validate(
&self,
source: &A,
op: &Self::Op
) -> Result<(), Self::ValidationError>
[src]
&self,
source: &A,
op: &Self::Op
) -> Result<(), Self::ValidationError>
fn apply(&mut self, op: Self::Op)
[src]
impl<A: Clone + Hash + Ord, M: Clone + Eq + Hash> Clone for BRBOrswot<A, M>
[src]
impl<A: Debug + Hash + Ord + Clone, M: Debug + Clone + Eq + Hash> Debug for BRBOrswot<A, M>
[src]
impl<A: Eq + Hash + Ord + Clone, M: Eq + Clone + Hash> Eq for BRBOrswot<A, M>
[src]
impl<A: PartialEq + Hash + Ord + Clone, M: PartialEq + Clone + Eq + Hash> PartialEq<BRBOrswot<A, M>> for BRBOrswot<A, M>
[src]
fn eq(&self, other: &BRBOrswot<A, M>) -> bool
[src]
fn ne(&self, other: &BRBOrswot<A, M>) -> bool
[src]
impl<A: Hash + Ord + Clone, M: Clone + Eq + Hash> Serialize for BRBOrswot<A, M> where
A: Serialize,
M: Serialize,
[src]
A: Serialize,
M: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<A: Hash + Ord + Clone, M: Clone + Eq + Hash> StructuralEq for BRBOrswot<A, M>
[src]
impl<A: Hash + Ord + Clone, M: Clone + Eq + Hash> StructuralPartialEq for BRBOrswot<A, M>
[src]
Auto Trait Implementations
impl<A, M> RefUnwindSafe for BRBOrswot<A, M> where
A: RefUnwindSafe,
M: RefUnwindSafe,
[src]
A: RefUnwindSafe,
M: RefUnwindSafe,
impl<A, M> Send for BRBOrswot<A, M> where
A: Send,
M: Send,
[src]
A: Send,
M: Send,
impl<A, M> Sync for BRBOrswot<A, M> where
A: Sync,
M: Sync,
[src]
A: Sync,
M: Sync,
impl<A, M> Unpin for BRBOrswot<A, M> where
A: Unpin,
M: Unpin,
[src]
A: Unpin,
M: Unpin,
impl<A, M> UnwindSafe for BRBOrswot<A, M> where
A: RefUnwindSafe + UnwindSafe,
M: UnwindSafe,
[src]
A: RefUnwindSafe + UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BRBDT for T where
T: BRBDataType<Actor>,
[src]
T: BRBDataType<Actor>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,