pub struct Ref<'lib, T: 'lib> { /* private fields */ }Expand description
Safe wrapper around cont reference.
This type is intended to be used only inside structures implementing SymBorApi trait.
In other cases you can as well use normal Rust reference.
Implementations§
Trait Implementations§
Source§impl<'lib, T> FromRawResult for Ref<'lib, T>
impl<'lib, T> FromRawResult for Ref<'lib, T>
impl<'lib, T: Copy + 'lib> Copy for Ref<'lib, T>
impl<'lib, T: Send> Send for Ref<'lib, T>
impl<'lib, T: Sync> Sync for Ref<'lib, T>
Auto Trait Implementations§
impl<'lib, T> Freeze for Ref<'lib, T>
impl<'lib, T> RefUnwindSafe for Ref<'lib, T>where
T: RefUnwindSafe,
impl<'lib, T> Unpin for Ref<'lib, T>
impl<'lib, T> UnwindSafe for Ref<'lib, T>where
T: RefUnwindSafe,
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