pub struct FixedPointResidentFrontierScratch { /* private fields */ }Expand description
Reusable resident frontier resources for fixed-point hot loops.
Implementations§
Source§impl FixedPointResidentFrontierScratch
impl FixedPointResidentFrontierScratch
Sourcepub fn ensure_pair_refs(
&mut self,
backend: &dyn VyreBackend,
byte_len: usize,
) -> Result<(&Resource, &Resource), String>
pub fn ensure_pair_refs( &mut self, backend: &dyn VyreBackend, byte_len: usize, ) -> Result<(&Resource, &Resource), String>
Ensure the resident frontier pair exists with at least byte_len bytes.
Sourcepub fn ensure_inplace_refs(
&mut self,
backend: &dyn VyreBackend,
byte_len: usize,
) -> Result<(&Resource, &Resource), String>
pub fn ensure_inplace_refs( &mut self, backend: &dyn VyreBackend, byte_len: usize, ) -> Result<(&Resource, &Resource), String>
Ensure an in-place resident frontier and one u32 changed flag exist.
Sourcepub fn is_allocated(&self) -> bool
pub fn is_allocated(&self) -> bool
Whether both resident frontier resources are currently allocated.
Sourcepub fn clear(&mut self, backend: &dyn VyreBackend) -> Result<(), BackendError>
pub fn clear(&mut self, backend: &dyn VyreBackend) -> Result<(), BackendError>
Free resident frontier resources, preserving the scratch object itself.
Trait Implementations§
Source§impl Clone for FixedPointResidentFrontierScratch
impl Clone for FixedPointResidentFrontierScratch
Source§fn clone(&self) -> FixedPointResidentFrontierScratch
fn clone(&self) -> FixedPointResidentFrontierScratch
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 FixedPointResidentFrontierScratch
impl Default for FixedPointResidentFrontierScratch
Source§fn default() -> FixedPointResidentFrontierScratch
fn default() -> FixedPointResidentFrontierScratch
Returns the “default value” for a type. Read more
impl StructuralPartialEq for FixedPointResidentFrontierScratch
Auto Trait Implementations§
impl Freeze for FixedPointResidentFrontierScratch
impl RefUnwindSafe for FixedPointResidentFrontierScratch
impl Send for FixedPointResidentFrontierScratch
impl Sync for FixedPointResidentFrontierScratch
impl Unpin for FixedPointResidentFrontierScratch
impl UnsafeUnpin for FixedPointResidentFrontierScratch
impl UnwindSafe for FixedPointResidentFrontierScratch
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