pub struct FetchIndices<'a> { /* 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> FetchIndices<'a>
impl<'a> FetchIndices<'a>
Sourcepub fn new(indices: &'a [u32], vertex_count: usize) -> Self
pub fn new(indices: &'a [u32], 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§
Source§impl<'a> Clone for FetchIndices<'a>
impl<'a> Clone for FetchIndices<'a>
impl<'a> Copy for FetchIndices<'a>
Auto Trait Implementations§
impl<'a> Freeze for FetchIndices<'a>
impl<'a> RefUnwindSafe for FetchIndices<'a>
impl<'a> Send for FetchIndices<'a>
impl<'a> Sync for FetchIndices<'a>
impl<'a> Unpin for FetchIndices<'a>
impl<'a> UnsafeUnpin for FetchIndices<'a>
impl<'a> UnwindSafe for FetchIndices<'a>
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