pub enum EventSlice {
Absolute(AbsoluteCapacity),
Relative(RelativeCapacity),
}
Variants§
Absolute(AbsoluteCapacity)
Relative(RelativeCapacity)
Implementations§
source§impl EventSlice
impl EventSlice
pub fn capacity(self, workload: usize) -> NonZeroUsize
Trait Implementations§
source§impl Clone for EventSlice
impl Clone for EventSlice
source§fn clone(&self) -> EventSlice
fn clone(&self) -> EventSlice
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 EventSlice
impl Debug for EventSlice
source§impl<'de> Deserialize<'de> for EventSlice
impl<'de> Deserialize<'de> for EventSlice
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for EventSlice
impl Serialize for EventSlice
impl Copy for EventSlice
Auto Trait Implementations§
impl Freeze for EventSlice
impl RefUnwindSafe for EventSlice
impl Send for EventSlice
impl Sync for EventSlice
impl Unpin for EventSlice
impl UnwindSafe for EventSlice
Blanket Implementations§
§impl<T> Backup for Twhere
T: Clone,
impl<T> Backup for Twhere
T: Clone,
default unsafe fn backup_unchecked(&self) -> T
default unsafe fn __contracts_impl_backup_unchecked(&self) -> T
fn backup(&self) -> BackedUp<Self>
§impl<T> Backup for Twhere
T: Copy,
impl<T> Backup for Twhere
T: Copy,
unsafe fn __contracts_impl_backup_unchecked(&self) -> T
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
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
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more