pub struct AllocationResult {
pub target_bits: u64,
pub min_bits: u64,
pub max_bits: u64,
pub frame_type: FrameType,
pub complexity_factor: f32,
pub reservoir_adjustment: i64,
}Expand description
Result of frame allocation.
Fields§
§target_bits: u64Target bits for the frame.
min_bits: u64Minimum bits (underflow prevention).
max_bits: u64Maximum bits (overflow prevention).
frame_type: FrameTypeFrame type.
complexity_factor: f32Complexity factor relative to average.
reservoir_adjustment: i64Reservoir adjustment applied.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationResult
impl Clone for AllocationResult
Source§fn clone(&self) -> AllocationResult
fn clone(&self) -> AllocationResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AllocationResult
impl RefUnwindSafe for AllocationResult
impl Send for AllocationResult
impl Sync for AllocationResult
impl Unpin for AllocationResult
impl UnsafeUnpin for AllocationResult
impl UnwindSafe for AllocationResult
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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