pub struct KeyValue<K, V> {
pub key: K,
pub value: V,
}Expand description
key=value, split at the first =: --defsym=sym=expr,
-z max-page-size=4096, --section-start=.text=0x1000. The value may hold
more =.
Fields§
§key: KBefore the first =.
value: VAfter it.
Trait Implementations§
impl<K: Copy, V: Copy> Copy for KeyValue<K, V>
impl<K: Eq, V: Eq> Eq for KeyValue<K, V>
Source§impl<K: FromArg, V: FromArg> FromArg for KeyValue<K, V>
impl<K: FromArg, V: FromArg> FromArg for KeyValue<K, V>
Source§const CHOICES: &'static [&'static str] = _
const CHOICES: &'static [&'static str] = _
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.impl<K: PartialEq, V: PartialEq> StructuralPartialEq for KeyValue<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for KeyValue<K, V>
impl<K, V> RefUnwindSafe for KeyValue<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for KeyValue<K, V>
impl<K, V> Sync for KeyValue<K, V>
impl<K, V> Unpin for KeyValue<K, V>
impl<K, V> UnsafeUnpin for KeyValue<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for KeyValue<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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