Struct bitcoin_peerman::ByTimeIndex
source · pub struct ByTimeIndex {
pub parent: Arc<AnnouncementIndex>,
pub order: Vec<usize>,
}Fields§
§parent: Arc<AnnouncementIndex>§order: Vec<usize>Trait Implementations§
source§impl AnnouncementIndexIndex for ByTimeIndex
impl AnnouncementIndexIndex for ByTimeIndex
type IteratorType = ByTimeIterator
type KeyType = TimeKey
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn lower_bound(&self, x: &Self::KeyType) -> Option<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn lower_bound_with_peekable( &self, x: &Self::KeyType ) -> CppIter<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn push(&mut self, x: &Announcement) -> Result<(), &'static str>
fn count(&self, x: &Self::KeyType) -> usize
fn contains_key(&self, x: &Self::KeyType) -> bool
fn remove(&mut self, x: &Self::KeyType) -> CppIter<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn remove_announcement<T>(&mut self, x: &Announcement) -> T
fn get(&self, x: &Self::KeyType) -> Option<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn get_peekable(&self, x: &Self::KeyType) -> CppIter<Self::IteratorType>where <Self as AnnouncementIndexIndex>::IteratorType: Iterator,
fn modify_with_peekable<I: AnnouncementIterator>( &mut self, it: &CppIter<I>, modifier: AnnouncementModifier )
fn modify<I: AnnouncementIterator>( &mut self, it: &I, modifier: AnnouncementModifier )
source§impl Clone for ByTimeIndex
impl Clone for ByTimeIndex
source§fn clone(&self) -> ByTimeIndex
fn clone(&self) -> ByTimeIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ByTimeIndex
impl Debug for ByTimeIndex
source§impl IntoIterator for ByTimeIndex
impl IntoIterator for ByTimeIndex
Auto Trait Implementations§
impl RefUnwindSafe for ByTimeIndex
impl Send for ByTimeIndex
impl Sync for ByTimeIndex
impl Unpin for ByTimeIndex
impl UnwindSafe for ByTimeIndex
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more