#[non_exhaustive]pub enum SupportedVersion {
V1(V1),
}Expand description
Represents a supported WDL version.
The Default implementation of this type returns the most recent
fully-supported ratified version of WDL.
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 SupportedVersion
impl SupportedVersion
Sourcepub fn has_same_major_version(self, other: SupportedVersion) -> bool
pub fn has_same_major_version(self, other: SupportedVersion) -> bool
Returns true if the other version has the same major version as this
one.
assert!(SupportedVersion::V1(V1::Zero).has_same_major_version(SupportedVersion::V1(V1::Two)));Sourcepub fn all() -> impl Iterator<Item = SupportedVersion>
pub fn all() -> impl Iterator<Item = SupportedVersion>
Returns an iterator over all supported WDL versions.
Trait Implementations§
Source§impl Clone for SupportedVersion
impl Clone for SupportedVersion
Source§fn clone(&self) -> SupportedVersion
fn clone(&self) -> SupportedVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 SupportedVersion
impl Debug for SupportedVersion
Source§impl Default for SupportedVersion
impl Default for SupportedVersion
Source§fn default() -> SupportedVersion
fn default() -> SupportedVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupportedVersion
impl<'de> Deserialize<'de> for SupportedVersion
Source§fn deserialize<__D>(
deserializer: __D,
) -> Result<SupportedVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
deserializer: __D,
) -> Result<SupportedVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SupportedVersion
impl Display for SupportedVersion
Source§impl FromStr for SupportedVersion
impl FromStr for SupportedVersion
Source§impl Ord for SupportedVersion
impl Ord for SupportedVersion
Source§fn cmp(&self, other: &SupportedVersion) -> Ordering
fn cmp(&self, other: &SupportedVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SupportedVersion
impl PartialEq for SupportedVersion
Source§impl PartialOrd for SupportedVersion
impl PartialOrd for SupportedVersion
Source§impl Serialize for SupportedVersionwhere
SupportedVersion: Display,
impl Serialize for SupportedVersionwhere
SupportedVersion: Display,
Source§fn serialize<__S>(
&self,
serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SupportedVersion
impl Eq for SupportedVersion
impl StructuralPartialEq for SupportedVersion
Auto Trait Implementations§
impl Freeze for SupportedVersion
impl RefUnwindSafe for SupportedVersion
impl Send for SupportedVersion
impl Sync for SupportedVersion
impl Unpin for SupportedVersion
impl UnwindSafe for SupportedVersion
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