Enum wdl_analysis::Function
source · pub enum Function {
Monomorphic(MonomorphicFunction),
Polymorphic(PolymorphicFunction),
}Expand description
Represents a WDL function.
Variants§
Monomorphic(MonomorphicFunction)
The function is monomorphic.
Polymorphic(PolymorphicFunction)
The function is polymorphic.
Implementations§
source§impl Function
impl Function
sourcepub fn minimum_version(&self) -> SupportedVersion
pub fn minimum_version(&self) -> SupportedVersion
Gets the minimum supported WDL version for the function.
Trait Implementations§
source§impl From<MonomorphicFunction> for Function
impl From<MonomorphicFunction> for Function
source§fn from(value: MonomorphicFunction) -> Self
fn from(value: MonomorphicFunction) -> Self
Converts to this type from the input type.
source§impl From<PolymorphicFunction> for Function
impl From<PolymorphicFunction> for Function
source§fn from(value: PolymorphicFunction) -> Self
fn from(value: PolymorphicFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Function
impl !RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more