pub struct ArgvSlot {
pub fill: FillTemplate,
pub label: String,
pub admits_leading_dash: bool,
}Expand description
One argv slot: the template that fills it and whether it may begin with a dash.
Fields§
§fill: FillTemplateThe fill that produces this slot’s element.
label: StringHow a refusal names this slot: the first interpolated parameter, or the slot’s literal text.
admits_leading_dash: boolWhether an element beginning with - is admitted here.
false means the slot’s opening bytes are caller-supplied (its first
piece is a hole) and no literal -- element stands before it on the
same line, so leading-dash bytes could not be told from an option.
The condition is computed from the LINE at compile time and travels
here as a fact, never as a keyword an author could write to switch
the refusal off.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArgvSlot
impl<'de> Deserialize<'de> for ArgvSlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArgvSlot
impl StructuralPartialEq for ArgvSlot
Auto Trait Implementations§
impl Freeze for ArgvSlot
impl RefUnwindSafe for ArgvSlot
impl Send for ArgvSlot
impl Sync for ArgvSlot
impl Unpin for ArgvSlot
impl UnsafeUnpin for ArgvSlot
impl UnwindSafe for ArgvSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.