Struct wdl_analysis::MonomorphicFunction
source · pub struct MonomorphicFunction { /* private fields */ }Expand description
Represents a monomorphic function.
In this context, a monomorphic function has only a single type (i.e. signature).
Implementations§
source§impl MonomorphicFunction
impl MonomorphicFunction
sourcepub fn new(
minimum_version: SupportedVersion,
signature: FunctionSignature,
) -> Self
pub fn new( minimum_version: SupportedVersion, signature: FunctionSignature, ) -> Self
Constructs a new monomorphic function.
sourcepub fn minimum_version(&self) -> SupportedVersion
pub fn minimum_version(&self) -> SupportedVersion
Gets the minimum supported WDL version for the function.
sourcepub fn signature(&self) -> &FunctionSignature
pub fn signature(&self) -> &FunctionSignature
Gets the signature of the function.
Trait Implementations§
source§impl Debug for MonomorphicFunction
impl Debug for MonomorphicFunction
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.
Auto Trait Implementations§
impl Freeze for MonomorphicFunction
impl !RefUnwindSafe for MonomorphicFunction
impl Send for MonomorphicFunction
impl Sync for MonomorphicFunction
impl Unpin for MonomorphicFunction
impl !UnwindSafe for MonomorphicFunction
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