pub enum AllowableValue {
Any,
Empty,
Effective(InterpretedValue),
Implied(&'static str),
}Expand description
Allowable values for the attribute.
Variants§
Any
Any value is accepted.
Empty
Indicates the attribute doesn’t require an explicit value. The attribute is simply turned on by being set.
Effective(InterpretedValue)
In some cases, an empty value is interpreted by the processor as one of
the allowable non-empty values. This effective value is prefixed with an
equals sign and enclosed in square brackets (e.g., [=auto]). An
attribute reference will resolve to an empty value rather than the
effective value.
Implied(&'static str)
Built-in attributes that are not set may have an implied value. The implied value is enclosed in parentheses (e.g., (attributes)). An implied value can’t be resolved using an attribute reference.
Trait Implementations§
Source§impl Clone for AllowableValue
impl Clone for AllowableValue
Source§fn clone(&self) -> AllowableValue
fn clone(&self) -> AllowableValue
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 AllowableValue
impl Debug for AllowableValue
Source§impl PartialEq for AllowableValue
impl PartialEq for AllowableValue
impl Eq for AllowableValue
impl StructuralPartialEq for AllowableValue
Auto Trait Implementations§
impl Freeze for AllowableValue
impl RefUnwindSafe for AllowableValue
impl Send for AllowableValue
impl Sync for AllowableValue
impl Unpin for AllowableValue
impl UnwindSafe for AllowableValue
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