use super::{ConstantDeclaration, FunctionDeclaration};
use crate::{language::CallPath, type_system::TypeArgument, TypeParameter};
use sway_types::span::Span;
#[derive(Debug, Clone)]
pub enum ImplItem {
Fn(FunctionDeclaration),
Constant(ConstantDeclaration),
}
#[derive(Debug, Clone)]
pub struct ImplTrait {
pub impl_type_parameters: Vec<TypeParameter>,
pub trait_name: CallPath,
pub trait_type_arguments: Vec<TypeArgument>,
pub implementing_for: TypeArgument,
pub items: Vec<ImplItem>,
pub(crate) block_span: Span,
}
#[derive(Debug, Clone)]
pub struct ImplSelf {
pub impl_type_parameters: Vec<TypeParameter>,
pub implementing_for: TypeArgument,
pub items: Vec<ImplItem>,
pub(crate) block_span: Span,
}