pub enum PositionalShape {
Path,
}Expand description
Predicate over the first positional token of a fallback grammar. Lets a TOML-declared fallback say “the first positional must look like a path” without the handler hardcoding the test.
Variants§
Path
Looks like a file path: contains /, contains ., or is -
(the conventional stdin marker). Rejects flag-shaped tokens.
Implementations§
Trait Implementations§
Source§impl Clone for PositionalShape
impl Clone for PositionalShape
Source§fn clone(&self) -> PositionalShape
fn clone(&self) -> PositionalShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PositionalShape
Source§impl Debug for PositionalShape
impl Debug for PositionalShape
impl Eq for PositionalShape
Source§impl PartialEq for PositionalShape
impl PartialEq for PositionalShape
Source§fn eq(&self, other: &PositionalShape) -> bool
fn eq(&self, other: &PositionalShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PositionalShape
Auto Trait Implementations§
impl Freeze for PositionalShape
impl RefUnwindSafe for PositionalShape
impl Send for PositionalShape
impl Sync for PositionalShape
impl Unpin for PositionalShape
impl UnsafeUnpin for PositionalShape
impl UnwindSafe for PositionalShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.