pub enum OverflowContext {
Mirror(u32),
Depth(u32),
}Expand description
Which construction hit the segment cap, for the surfaced message.
An enum rather than a String because one of the two producers is per
frame: with a String, an audio-driven mirror_order sitting over the cap
builds a fresh format!("mirror x{order}") on every single frame for as long
as it stayed there — a heap allocation on the hot path (Plan 0031 Phase 4).
The formatting now happens only in Display, i.e. only
when something actually prints it.
Variants§
Mirror(u32)
An N-fold geometry mirror replicated past the cap — per frame, from the
mirror_order param (Plan 0018 Phase 4).
Depth(u32)
An L-system depth expanded past the cap — once, at preset load.
Trait Implementations§
Source§impl Clone for OverflowContext
impl Clone for OverflowContext
Source§fn clone(&self) -> OverflowContext
fn clone(&self) -> OverflowContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OverflowContext
impl Debug for OverflowContext
Source§impl Display for OverflowContext
impl Display for OverflowContext
Source§impl PartialEq for OverflowContext
impl PartialEq for OverflowContext
Source§fn eq(&self, other: &OverflowContext) -> bool
fn eq(&self, other: &OverflowContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OverflowContext
impl Eq for OverflowContext
impl StructuralPartialEq for OverflowContext
Auto Trait Implementations§
impl Freeze for OverflowContext
impl RefUnwindSafe for OverflowContext
impl Send for OverflowContext
impl Sync for OverflowContext
impl Unpin for OverflowContext
impl UnsafeUnpin for OverflowContext
impl UnwindSafe for OverflowContext
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,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.