pub struct AttrValue<T> {
pub eq_token: Eq,
pub value: T,
}
Expand description
The value of an attribute like #[key = "value"]
.
Fields
eq_token: Eq
The =
token between the key and value.
value: T
The value parsed from a string literal.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AttrValue<T>where
T: RefUnwindSafe,
impl<T> !Send for AttrValue<T>
impl<T> !Sync for AttrValue<T>
impl<T> Unpin for AttrValue<T>where
T: Unpin,
impl<T> UnwindSafe for AttrValue<T>where
T: UnwindSafe,
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