pub struct CapOverflow {
pub dropped: usize,
pub context: OverflowContext,
pub cap: usize,
}Expand description
Reported when building a line scene’s geometry hit the segment cap and
truncated. The cap must never be a silent cut (ADR-0007 Risks), so it travels
to the frontend two ways: out of Scene::configure at preset load, and off
Scene::mirror_overflow for the per-frame mirror. None is the normal case
where geometry fit.
Fields§
§dropped: usizeHow many draw segments were dropped at the cap.
context: OverflowContextWhere the drop happened, for the surfaced message.
cap: usizeThe cap that bit, carried rather than read from a constant: it is a tier value now (Plan 0044), so the same preset overflows at 20 000 segments on the floor and not at all at 60 000 on rich. A message naming a cap the run was not using would be worse than no message.
Implementations§
Source§impl CapOverflow
impl CapOverflow
Sourcepub fn top_tier_lifts(&self) -> bool
pub fn top_tier_lifts(&self) -> bool
Whether the top tier’s cap for this context is above the one that bit, so that pinning it would draw more of what the preset asked.
Read off TierConfig::RICH rather
than carried, so no producer has to know which tier it runs on: a cap
below Rich’s can only have come from a lower tier, and a cap equal to it
is the top tier’s own.
Sourcepub fn recovered(&self) -> Recovered<'_>
pub fn recovered(&self) -> Recovered<'_>
The clearing of this overflow, worded in the same terms its onset was.
Three of the five contexts clamp a structural parameter rather than cutting geometry, so one sentence cannot speak for all five: what came back is an iteration budget, a grid or a neighbourhood, not geometry and not segments. The shell holds the overflow that last bit and renders this off it, which keeps every word of the pair in this file.
Trait Implementations§
Source§impl Clone for CapOverflow
impl Clone for CapOverflow
Source§fn clone(&self) -> CapOverflow
fn clone(&self) -> CapOverflow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapOverflow
impl Debug for CapOverflow
Source§impl Display for CapOverflow
impl Display for CapOverflow
Source§impl PartialEq for CapOverflow
impl PartialEq for CapOverflow
Source§fn eq(&self, other: &CapOverflow) -> bool
fn eq(&self, other: &CapOverflow) -> bool
self and other values to be equal, and is used by ==.impl Copy for CapOverflow
impl Eq for CapOverflow
impl StructuralPartialEq for CapOverflow
Auto Trait Implementations§
impl Freeze for CapOverflow
impl RefUnwindSafe for CapOverflow
impl Send for CapOverflow
impl Sync for CapOverflow
impl Unpin for CapOverflow
impl UnsafeUnpin for CapOverflow
impl UnwindSafe for CapOverflow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.