TreapData

Struct TreapData 

Source
pub struct TreapData<M, L>
where M: MonoidAct<Key: Ord>, L: LazyMapMonoid,
{ priority: u64, key: MonoidActElement<M>, value: LazyMapElement<L>, }

Fields§

§priority: u64§key: MonoidActElement<M>§value: LazyMapElement<L>

Trait Implementations§

Source§

impl<M, L> BstDataAccess<Key> for TreapData<M, L>
where M: MonoidAct<Key: Ord>, L: LazyMapMonoid,

Source§

type Value = <M as MonoidAct>::Key

Source§

fn bst_data(&self) -> &Self::Value

Source§

fn bst_data_mut(&mut self) -> &mut Self::Value

Source§

impl<M, L> BstDataAccess<LazyMap> for TreapData<M, L>
where M: MonoidAct<Key: Ord>, L: LazyMapMonoid,

Source§

type Value = LazyMapElement<L>

Source§

fn bst_data(&self) -> &Self::Value

Source§

fn bst_data_mut(&mut self) -> &mut Self::Value

Source§

impl<M, L> BstDataAccess<MonoidAct> for TreapData<M, L>
where M: MonoidAct<Key: Ord>, L: LazyMapMonoid,

Source§

type Value = MonoidActElement<M>

Source§

fn bst_data(&self) -> &Self::Value

Source§

fn bst_data_mut(&mut self) -> &mut Self::Value

Source§

impl<M, L> Debug for TreapData<M, L>
where M: MonoidAct<Key: Ord + Debug, Act: Debug>, L: LazyMapMonoid<Key: Debug, Agg: Debug, Act: Debug>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<M, L> Freeze for TreapData<M, L>
where <M as MonoidAct>::Key: Freeze, <M as MonoidAct>::Act: Freeze, <L as LazyMapMonoid>::Key: Freeze, <L as LazyMapMonoid>::Agg: Freeze, <L as LazyMapMonoid>::Act: Freeze,

§

impl<M, L> RefUnwindSafe for TreapData<M, L>

§

impl<M, L> Send for TreapData<M, L>
where <M as MonoidAct>::Key: Send, <M as MonoidAct>::Act: Send, <L as LazyMapMonoid>::Key: Send, <L as LazyMapMonoid>::Agg: Send, <L as LazyMapMonoid>::Act: Send,

§

impl<M, L> Sync for TreapData<M, L>
where <M as MonoidAct>::Key: Sync, <M as MonoidAct>::Act: Sync, <L as LazyMapMonoid>::Key: Sync, <L as LazyMapMonoid>::Agg: Sync, <L as LazyMapMonoid>::Act: Sync,

§

impl<M, L> Unpin for TreapData<M, L>
where <M as MonoidAct>::Key: Unpin, <M as MonoidAct>::Act: Unpin, <L as LazyMapMonoid>::Key: Unpin, <L as LazyMapMonoid>::Agg: Unpin, <L as LazyMapMonoid>::Act: Unpin,

§

impl<M, L> UnwindSafe for TreapData<M, L>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.