pub struct ElementRef<'borrow, T: 'borrow> { /* private fields */ }
Expand description
A wrapper type for a immutably borrowed element from a VecCell<T>
.
Implementations§
Source§impl<'borrow, T: 'borrow> ElementRef<'borrow, T>
impl<'borrow, T: 'borrow> ElementRef<'borrow, T>
Sourcepub fn clone(orig: &ElementRef<'borrow, T>) -> ElementRef<'borrow, T>
pub fn clone(orig: &ElementRef<'borrow, T>) -> ElementRef<'borrow, T>
Clones ElementRef
.
Sourcepub fn map<U, F>(orig: ElementRef<'borrow, T>, f: F) -> ElementRef<'borrow, U>
pub fn map<U, F>(orig: ElementRef<'borrow, T>, f: F) -> ElementRef<'borrow, U>
Makes a new ElementRef
for a compomnent of the borrowed data.
Trait Implementations§
Source§impl<T: Debug> Debug for ElementRef<'_, T>
impl<T: Debug> Debug for ElementRef<'_, T>
Auto Trait Implementations§
impl<'borrow, T> Freeze for ElementRef<'borrow, T>
impl<'borrow, T> !RefUnwindSafe for ElementRef<'borrow, T>
impl<'borrow, T> !Send for ElementRef<'borrow, T>
impl<'borrow, T> !Sync for ElementRef<'borrow, T>
impl<'borrow, T> Unpin for ElementRef<'borrow, T>
impl<'borrow, T> !UnwindSafe for ElementRef<'borrow, 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