pub struct ElementCache<T> { /* private fields */ }Expand description
Abstraction over the Amf3 caching mechanism
Implementations§
Source§impl<T: PartialEq + Clone + Debug> ElementCache<T>
impl<T: PartialEq + Clone + Debug> ElementCache<T>
Sourcepub fn get_element(&self, index: usize) -> Option<T>
pub fn get_element(&self, index: usize) -> Option<T>
Retrieve the item at the given index from the cache
Trait Implementations§
Source§impl<T: Clone> Clone for ElementCache<T>
impl<T: Clone> Clone for ElementCache<T>
Source§fn clone(&self) -> ElementCache<T>
fn clone(&self) -> ElementCache<T>
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<T: Debug> Debug for ElementCache<T>
impl<T: Debug> Debug for ElementCache<T>
Auto Trait Implementations§
impl<T> !Freeze for ElementCache<T>
impl<T> !RefUnwindSafe for ElementCache<T>
impl<T> !Sync for ElementCache<T>
impl<T> Send for ElementCache<T>
impl<T> Unpin for ElementCache<T>
impl<T> UnsafeUnpin for ElementCache<T>
impl<T> UnwindSafe for ElementCache<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