Struct despatma_lib::KeyValue
source · pub struct KeyValue {
pub key: Ident,
pub equal_token: Eq,
pub value: TokenTree,
}Expand description
Holds a single key value attribute, with the value being optional.
Streams in the following form will be parsed:
key = value
The value is optional.
Thus, the following is also valid.
key
Fields§
§key: Ident§equal_token: Eq§value: TokenTreeTrait Implementations§
Auto Trait Implementations§
impl Freeze for KeyValue
impl RefUnwindSafe for KeyValue
impl !Send for KeyValue
impl !Sync for KeyValue
impl Unpin for KeyValue
impl UnwindSafe for KeyValue
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