Struct AreaOfInterest

Source
pub struct AreaOfInterest<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> {
    pub area: Area<MCL, MCC, MPL, S>,
    pub max_count: u64,
    pub max_size: u64,
}
Expand description

A grouping of crate::Entrys that are among the newest in some store.

Definition.

Fields§

§area: Area<MCL, MCC, MPL, S>

To be included in this AreaOfInterest, an crate::Entry must be included in the Area.

§max_count: u64

To be included in this AreaOfInterest, an Entry’s timestamp must be among the max_count greatest Timestamps, unless max_count is zero.

§max_size: u64

The total payload_lengths of all included Entries is at most max_size, unless max_size is zero.

Implementations§

Source§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> AreaOfInterest<MCL, MCC, MPL, S>

Source

pub fn intersection( &self, other: AreaOfInterest<MCL, MCC, MPL, S>, ) -> Option<AreaOfInterest<MCL, MCC, MPL, S>>

Return the intersection of this AreaOfInterest with another. Definition.

Auto Trait Implementations§

§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> !Freeze for AreaOfInterest<MCL, MCC, MPL, S>

§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RefUnwindSafe for AreaOfInterest<MCL, MCC, MPL, S>
where S: RefUnwindSafe,

§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Send for AreaOfInterest<MCL, MCC, MPL, S>
where S: Send,

§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Sync for AreaOfInterest<MCL, MCC, MPL, S>
where S: Sync,

§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Unpin for AreaOfInterest<MCL, MCC, MPL, S>
where S: Unpin,

§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> UnwindSafe for AreaOfInterest<MCL, MCC, MPL, S>
where S: UnwindSafe,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.