Expand description
Wraps structures to pass them safely to/from C Since C doesn’t respect borrowing rules, RefCell will enforce them dynamically (only 1 writer/many readers) Rc is implied and will ensure timely dropping
Tuple Fields
0: *const RefCell<T>
Implementations
Trait Implementations
sourceimpl<T: Clone> CloneOwned for Wrapped<T>
impl<T: Clone> CloneOwned for Wrapped<T>
ToOwned won’t work here
because it’s really difficult to implement Borrow on Wrapped
type Owned = T
fn clone_owned(&self) -> T
impl<T> COpaquePtr for Wrapped<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Wrapped<T>
impl<T> !Send for Wrapped<T>
impl<T> !Sync for Wrapped<T>
impl<T> Unpin for Wrapped<T>
impl<T> !UnwindSafe for Wrapped<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more