1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::priv_prelude::*;
#[derive(Clone, Debug)]
pub struct ItemImpl {
pub impl_token: ImplToken,
pub generic_params_opt: Option<GenericParams>,
pub trait_opt: Option<(PathType, ForToken)>,
pub ty: Ty,
pub where_clause_opt: Option<WhereClause>,
pub contents: Braces<Vec<Annotated<ItemFn>>>,
}
impl Spanned for ItemImpl {
fn span(&self) -> Span {
Span::join(self.impl_token.span(), self.contents.span())
}
}