#[non_exhaustive]pub enum TaskParameterType {
Int,
Float,
String,
Path,
ChunkInt,
}Expand description
The type of a task parameter definition.
Marked #[non_exhaustive] so that future revisions and extensions
can add task parameter types (for example, a list-typed task
parameter analogous to JobParameterType::ListInt, or additional
chunked variants) without a SemVer break.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl TaskParameterType
impl TaskParameterType
Sourcepub fn from_spec_str(s: &str) -> Option<Self>
pub fn from_spec_str(s: &str) -> Option<Self>
Parse from the spec string (case-insensitive).
Sourcepub fn as_spec_str(&self) -> &'static str
pub fn as_spec_str(&self) -> &'static str
Returns the canonical spec string.
Trait Implementations§
Source§impl Clone for TaskParameterType
impl Clone for TaskParameterType
Source§fn clone(&self) -> TaskParameterType
fn clone(&self) -> TaskParameterType
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 moreSource§impl Debug for TaskParameterType
impl Debug for TaskParameterType
Source§impl Display for TaskParameterType
impl Display for TaskParameterType
Source§impl Hash for TaskParameterType
impl Hash for TaskParameterType
Source§impl PartialEq for TaskParameterType
impl PartialEq for TaskParameterType
Source§fn eq(&self, other: &TaskParameterType) -> bool
fn eq(&self, other: &TaskParameterType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TaskParameterType
impl Eq for TaskParameterType
impl StructuralPartialEq for TaskParameterType
Auto Trait Implementations§
impl Freeze for TaskParameterType
impl RefUnwindSafe for TaskParameterType
impl Send for TaskParameterType
impl Sync for TaskParameterType
impl Unpin for TaskParameterType
impl UnsafeUnpin for TaskParameterType
impl UnwindSafe for TaskParameterType
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more