pub struct SharedView<'a>(/* private fields */);Expand description
A Shared cell, which has nothing readable on it.
Its contents are reachable only through lock, and showing them here
would be a read outside one — the single thing the type exists to prevent.
The variant is in ValueView so that a host can tell a Shared from
everything else, which is all a host can do with one.
It carries the borrow and no accessor, so the cell it was made from is not
reachable through it — deliberately, since reaching it is what lock is
for.
Trait Implementations§
Source§fn clone(&self) -> SharedView<'a>
fn clone(&self) -> SharedView<'a>
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 moreAuto Trait Implementations§
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