pub struct FetchIndicesGeneric<'a, I: Index = u32> { /* private fields */ }Expand description
Borrowed fetch-remap input with its index-validation result cached once.
Construction scans at most indices.len() entries, without allocating.
Invalid input is retained so operations can preserve error precedence,
logical work usage and caller-buffer writes, including on short budgets.
Implementations§
Source§impl<'a, I: Index> FetchIndicesGeneric<'a, I>
impl<'a, I: Index> FetchIndicesGeneric<'a, I>
Sourcepub fn new_generic(indices: &'a [I], vertex_count: usize) -> Self
pub fn new_generic(indices: &'a [I], vertex_count: usize) -> Self
Cache validation of an arbitrary index sequence and its vertex count.
Errors are deferred to the fetch-remap operation, where the original
validation visits are charged to its Workspace in constant time
when they fit. Short budgets replay the original charged prefix.
Trait Implementations§
impl<'a, I: Copy + Index> Copy for FetchIndicesGeneric<'a, I>
Source§impl<'a> From<FetchIndices<'a>> for FetchIndicesGeneric<'a, u32>
impl<'a> From<FetchIndices<'a>> for FetchIndicesGeneric<'a, u32>
Source§fn from(value: FetchIndices<'a>) -> Self
fn from(value: FetchIndices<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<FetchIndicesGeneric<'a>> for FetchIndices<'a>
impl<'a> From<FetchIndicesGeneric<'a>> for FetchIndices<'a>
Source§fn from(value: FetchIndicesGeneric<'a, u32>) -> Self
fn from(value: FetchIndicesGeneric<'a, u32>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, I> Forget for FetchIndicesGeneric<'a, I>
impl<'a, I> Freeze for FetchIndicesGeneric<'a, I>
impl<'a, I> Move for FetchIndicesGeneric<'a, I>
impl<'a, I> RefUnwindSafe for FetchIndicesGeneric<'a, I>where
&'a [I]: RefUnwindSafe,
impl<'a, I> Send for FetchIndicesGeneric<'a, I>
impl<'a, I> Sync for FetchIndicesGeneric<'a, I>
impl<'a, I> Unpin for FetchIndicesGeneric<'a, I>
impl<'a, I> UnsafeUnpin for FetchIndicesGeneric<'a, I>where
&'a [I]: UnsafeUnpin,
impl<'a, I> UnwindSafe for FetchIndicesGeneric<'a, I>where
&'a [I]: UnwindSafe,
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