pub struct RangeCut {
pub start: usize,
pub end: usize,
pub reopened: usize,
pub closed: usize,
pub demoted_retained: usize,
pub dropped_draw_retained: usize,
pub dropped_pops: usize,
}Expand description
What cutting a command range out of a scene did — the bracket rule of the overlay spike, reported so a caller (and a test) can see what a cut cost.
See project_command_range for the rule itself.
Fields§
§start: usizeThe first command index the projection carried, after clamping.
end: usizeOne past the last command index the projection carried, after clamping.
reopened: usizeBrackets open at start that were reopened ahead of the range.
closed: usizeBrackets still open at end that were closed after the range.
demoted_retained: usizePushRetained brackets spanning a cut, painted inline (their
presentation scale folded into the body’s transforms and their alpha
as a plain layer) rather than recorded as a page.
dropped_draw_retained: usizeDrawRetaineds dropped under keep_draw_retained: false.
dropped_pops: usizePops inside the range with no open bracket of their own kind — already ignored by every renderer, so dropped rather than carried.
Trait Implementations§
impl Copy for RangeCut
impl Eq for RangeCut
impl StructuralPartialEq for RangeCut
Auto Trait Implementations§
impl Freeze for RangeCut
impl RefUnwindSafe for RangeCut
impl Send for RangeCut
impl Sync for RangeCut
impl Unpin for RangeCut
impl UnsafeUnpin for RangeCut
impl UnwindSafe for RangeCut
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.