pub struct SortOrderCache { /* private fields */ }Expand description
Previous back-to-front ordering for each view rendering the same batch.
Keyed by crate::ViewBuilderId so several views can display the same primitives from
different angles without their orderings clobbering each other. Reused across frames: the eye
usually moves only a little, so last frame’s ordering is a near-sorted starting point.
Trait Implementations§
Source§impl Clone for SortOrderCache
impl Clone for SortOrderCache
Source§fn clone(&self) -> SortOrderCache
fn clone(&self) -> SortOrderCache
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 Default for SortOrderCache
impl Default for SortOrderCache
Source§fn default() -> SortOrderCache
fn default() -> SortOrderCache
Returns the “default value” for a type. Read more
Source§impl SizeBytes for SortOrderCache
impl SizeBytes for SortOrderCache
const IS_POD: bool = <Arc<Mutex<HashMap<crate::ViewBuilderId, Vec<u32>>>> as ::re_byte_size::SizeBytes>::IS_POD
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
Returns how many bytes
self uses on the heap. Read moreSource§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
Returns the total size of
self in bytes, accounting for both stack and heap space.Source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
Returns the total size of
self on the stack, in bytes. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SortOrderCache
impl !UnwindSafe for SortOrderCache
impl Freeze for SortOrderCache
impl Send for SortOrderCache
impl Sync for SortOrderCache
impl Unpin for SortOrderCache
impl UnsafeUnpin for SortOrderCache
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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