pub enum Attr {
Read,
Write,
ReadWrite,
}
Expand description
Argument for define_attr
.
Variants
Read
Define a reader method like name
.
Write
Define a writer method like name=
.
ReadWrite
Define both reader and writer methods like name
and name=
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnwindSafe for Attr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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