pub struct TransformStore<T: Copy + Debug + Default + 'static> { /* private fields */ }
Expand description
A concurrent transform buffer store to reduce contention among multiple transform pairs
Implementations§
Source§impl<T: Copy + Debug + Default + 'static> TransformStore<T>
impl<T: Copy + Debug + Default + 'static> TransformStore<T>
pub fn new() -> Self
Sourcepub fn get_or_create_buffer(
&self,
parent: &str,
child: &str,
) -> TransformBuffer<T>
pub fn get_or_create_buffer( &self, parent: &str, child: &str, ) -> TransformBuffer<T>
Get or create a transform buffer for a specific parent-child frame pair
Sourcepub fn add_transform(&self, transform: StampedTransform<T>)
pub fn add_transform(&self, transform: StampedTransform<T>)
Add a transform to the appropriate buffer
Sourcepub fn get_buffer(
&self,
parent: &str,
child: &str,
) -> Option<TransformBuffer<T>>
pub fn get_buffer( &self, parent: &str, child: &str, ) -> Option<TransformBuffer<T>>
Get a transform buffer if it exists
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TransformStore<T>
impl<T> !RefUnwindSafe for TransformStore<T>
impl<T> Send for TransformStore<T>
impl<T> Sync for TransformStore<T>
impl<T> Unpin for TransformStore<T>
impl<T> UnwindSafe for TransformStore<T>
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> 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