pub struct ReadOnly;
Expand description
Zero-sized marker type for allowing only read access.
Trait Implementations§
Source§impl RestrictAccess<NoAccess> for ReadOnly
impl RestrictAccess<NoAccess> for ReadOnly
Source§type Restricted = NoAccess
type Restricted = NoAccess
Source§impl RestrictAccess<ReadOnly> for ReadOnly
impl RestrictAccess<ReadOnly> for ReadOnly
Source§type Restricted = ReadOnly
type Restricted = ReadOnly
Source§impl RestrictAccess<ReadOnly> for WriteOnly
impl RestrictAccess<ReadOnly> for WriteOnly
Source§type Restricted = NoAccess
type Restricted = NoAccess
Source§impl RestrictAccess<ReadWrite> for ReadOnly
impl RestrictAccess<ReadWrite> for ReadOnly
Source§type Restricted = ReadOnly
type Restricted = ReadOnly
Source§impl RestrictAccess<WriteOnly> for ReadOnly
impl RestrictAccess<WriteOnly> for ReadOnly
Source§type Restricted = NoAccess
type Restricted = NoAccess
impl Access for ReadOnly
impl Copy for ReadOnly
Auto Trait Implementations§
impl Freeze for ReadOnly
impl RefUnwindSafe for ReadOnly
impl Send for ReadOnly
impl Sync for ReadOnly
impl Unpin for ReadOnly
impl UnwindSafe for ReadOnly
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)