pub enum AttributeUse {
Prohibited,
Optional,
Required,
}Expand description
Legal uses of an attribute.
Variants§
Prohibited
Attribute cannot be used.
Optional
Attribute is optional.
Required
Attribute is required.
Trait Implementations§
Source§impl Clone for AttributeUse
impl Clone for AttributeUse
Source§fn clone(&self) -> AttributeUse
fn clone(&self) -> AttributeUse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeUse
impl Debug for AttributeUse
Auto Trait Implementations§
impl Freeze for AttributeUse
impl RefUnwindSafe for AttributeUse
impl Send for AttributeUse
impl Sync for AttributeUse
impl Unpin for AttributeUse
impl UnwindSafe for AttributeUse
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