struct Expander<'a, 'b, 'c> {
span: Span,
analyzer: &'a mut Analyzer<'b, 'c>,
dejavu: FxHashSet<Id>,
full: bool,
expand_union: bool,
expand_top_level: bool,
opts: ExpandOpts,
}
Fields
span: Span
analyzer: &'a mut Analyzer<'b, 'c>
dejavu: FxHashSet<Id>
full: bool
expand_union: bool
expand_top_level: bool
Should we expand top level references?
opts: ExpandOpts
Implementations
sourceimpl Expander<'_, '_, '_>
impl Expander<'_, '_, '_>
fn expand_ts_entity_name(
&mut self,
span: Span,
type_name: &RTsEntityName,
type_args: Option<&TypeParamInstantiation>,
was_top_level: bool,
trying_primitive_expansion: bool
) -> VResult<Option<Type>>
fn expand_ref(&mut self, r: Ref, was_top_level: bool) -> VResult<Option<Type>>
fn expand_type(&mut self, ty: Type) -> Type
Trait Implementations
sourceimpl Fold<ClassMember> for Expander<'_, '_, '_>
impl Fold<ClassMember> for Expander<'_, '_, '_>
fn fold(&mut self, node: ClassMember) -> ClassMember
sourceimpl Fold<ClassProperty> for Expander<'_, '_, '_>
impl Fold<ClassProperty> for Expander<'_, '_, '_>
fn fold(&mut self, value: ClassProperty) -> ClassProperty
sourceimpl Fold<TypeElement> for Expander<'_, '_, '_>
impl Fold<TypeElement> for Expander<'_, '_, '_>
fn fold(&mut self, node: TypeElement) -> TypeElement
Auto Trait Implementations
impl<'a, 'b, 'c> !RefUnwindSafe for Expander<'a, 'b, 'c>
impl<'a, 'b, 'c> !Send for Expander<'a, 'b, 'c>
impl<'a, 'b, 'c> !Sync for Expander<'a, 'b, 'c>
impl<'a, 'b, 'c> Unpin for Expander<'a, 'b, 'c>where
'b: 'a,
'c: 'a,
impl<'a, 'b, 'c> !UnwindSafe for Expander<'a, 'b, 'c>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more