pub enum TypeDecl {
Tuple(TupleTypeDecl),
Struct(StructTypeDecl),
Alias(AliasTypeDecl),
Enum(EnumTypeDecl),
Empty(EmptyTypeDecl),
}Variants§
Tuple(TupleTypeDecl)
Struct(StructTypeDecl)
Alias(AliasTypeDecl)
Enum(EnumTypeDecl)
Empty(EmptyTypeDecl)
Implementations§
Trait Implementations§
Source§impl From<AliasTypeDecl> for TypeDecl
impl From<AliasTypeDecl> for TypeDecl
Source§fn from(original: AliasTypeDecl) -> TypeDecl
fn from(original: AliasTypeDecl) -> TypeDecl
Converts to this type from the input type.
Source§impl From<EmptyTypeDecl> for TypeDecl
impl From<EmptyTypeDecl> for TypeDecl
Source§fn from(original: EmptyTypeDecl) -> TypeDecl
fn from(original: EmptyTypeDecl) -> TypeDecl
Converts to this type from the input type.
Source§impl From<EnumTypeDecl> for TypeDecl
impl From<EnumTypeDecl> for TypeDecl
Source§fn from(original: EnumTypeDecl) -> TypeDecl
fn from(original: EnumTypeDecl) -> TypeDecl
Converts to this type from the input type.
Source§impl From<StructTypeDecl> for TypeDecl
impl From<StructTypeDecl> for TypeDecl
Source§fn from(original: StructTypeDecl) -> TypeDecl
fn from(original: StructTypeDecl) -> TypeDecl
Converts to this type from the input type.
Source§impl From<TupleTypeDecl> for TypeDecl
impl From<TupleTypeDecl> for TypeDecl
Source§fn from(original: TupleTypeDecl) -> TypeDecl
fn from(original: TupleTypeDecl) -> TypeDecl
Converts to this type from the input type.
impl Eq for TypeDecl
impl RootItemMarker for TypeDecl
impl StructuralPartialEq for TypeDecl
Auto Trait Implementations§
impl Freeze for TypeDecl
impl RefUnwindSafe for TypeDecl
impl Send for TypeDecl
impl Sync for TypeDecl
impl Unpin for TypeDecl
impl UnwindSafe for TypeDecl
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> 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