Enum wdl_analysis::CompoundTypeDef
source · pub enum CompoundTypeDef {
Array(ArrayType),
Pair(PairType),
Map(MapType),
Struct(StructType),
}Expand description
Represents a compound type definition.
Variants§
Array(ArrayType)
The type is an Array.
Pair(PairType)
The type is a Pair.
Map(MapType)
The type is a Map.
Struct(StructType)
The type is a struct (e.g. Foo).
Trait Implementations§
source§impl Coercible for CompoundTypeDef
impl Coercible for CompoundTypeDef
source§fn is_coercible_to(&self, types: &Types, target: &Self) -> bool
fn is_coercible_to(&self, types: &Types, target: &Self) -> bool
Determines if the type is coercible to the target type.
source§impl Debug for CompoundTypeDef
impl Debug for CompoundTypeDef
source§impl From<ArrayType> for CompoundTypeDef
impl From<ArrayType> for CompoundTypeDef
source§impl From<MapType> for CompoundTypeDef
impl From<MapType> for CompoundTypeDef
source§impl From<PairType> for CompoundTypeDef
impl From<PairType> for CompoundTypeDef
source§impl From<StructType> for CompoundTypeDef
impl From<StructType> for CompoundTypeDef
source§fn from(value: StructType) -> Self
fn from(value: StructType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompoundTypeDef
impl RefUnwindSafe for CompoundTypeDef
impl Send for CompoundTypeDef
impl Sync for CompoundTypeDef
impl Unpin for CompoundTypeDef
impl UnwindSafe for CompoundTypeDef
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