pub enum Wildcardable<T: FromStr + Display + Debug + Eq + PartialEq + Hash> {
Star,
Value(T),
}Expand description
A wrapper for wildcardable partition values.
Allows us to specify, for example, ts=1337 and ts=*.
Variants§
Star
This value is wildcarded with a star,
as in ts=*
Value(T)
This value is explicitly given,
as in ts=1337
Implementations§
Trait Implementations§
Source§impl<T: FromStr + Display + Debug + Eq + PartialEq + Hash> Default for Wildcardable<T>
impl<T: FromStr + Display + Debug + Eq + PartialEq + Hash> Default for Wildcardable<T>
Source§fn default() -> Wildcardable<T>
fn default() -> Wildcardable<T>
Returns the “default value” for a type. Read more
Source§impl<T: FromStr + Display + Debug + Eq + PartialEq + Hash> From<Wildcardable<T>> for Option<T>
impl<T: FromStr + Display + Debug + Eq + PartialEq + Hash> From<Wildcardable<T>> for Option<T>
Source§fn from(value: Wildcardable<T>) -> Self
fn from(value: Wildcardable<T>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq + FromStr + Display + Debug + Eq + PartialEq + Hash> PartialEq for Wildcardable<T>
impl<T: PartialEq + FromStr + Display + Debug + Eq + PartialEq + Hash> PartialEq for Wildcardable<T>
impl<T: FromStr + Display + Debug + Eq + PartialEq + Hash + Copy> Copy for Wildcardable<T>
impl<T: Eq + FromStr + Display + Debug + Eq + PartialEq + Hash> Eq for Wildcardable<T>
impl<T: FromStr + Display + Debug + Eq + PartialEq + Hash> StructuralPartialEq for Wildcardable<T>
Auto Trait Implementations§
impl<T> Freeze for Wildcardable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Wildcardable<T>where
T: RefUnwindSafe,
impl<T> Send for Wildcardable<T>where
T: Send,
impl<T> Sync for Wildcardable<T>where
T: Sync,
impl<T> Unpin for Wildcardable<T>where
T: Unpin,
impl<T> UnsafeUnpin for Wildcardable<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Wildcardable<T>where
T: 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