pub struct ReadOnly;
Expand description
Zero-sized marker type for allowing only read access.
Trait Implementations§
impl Copy for ReadOnly
Auto Trait Implementations§
impl RefUnwindSafe for ReadOnly
impl Send for ReadOnly
impl Sync for ReadOnly
impl Unpin for ReadOnly
impl UnwindSafe for ReadOnly
Blanket Implementations§
source§impl<T> Access for Twhere
T: Readable + Default + Copy,
impl<T> Access for Twhere T: Readable + Default + Copy,
Reduced access level to safely share the corresponding value.
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