pub enum Access {
Read,
Write,
ReadWrite,
}Expand description
Whether a property can be read, written, or both.
Variants§
Read
The property can only be read.
Write
The property can only be written.
ReadWrite
The property can be both read and written.
Implementations§
Source§impl Access
impl Access
Sourcepub fn is_readable(self) -> bool
pub fn is_readable(self) -> bool
Test if the property can be read.
Sourcepub fn is_writable(self) -> bool
pub fn is_writable(self) -> bool
Test if the property can be written.
Trait Implementations§
impl Copy for Access
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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