Struct stc_ts_file_analyzer::analyzer::scope::ExpandOpts
source · [−]pub(crate) struct ExpandOpts {
pub full: bool,
pub expand_union: bool,
pub preserve_ref: bool,
pub ignore_expand_prevention_for_top: bool,
pub ignore_expand_prevention_for_all: bool,
pub expand_params: bool,
pub expand_ret_ty: bool,
pub generic: ExpandGenericOpts,
}
Expand description
Fields
full: bool
TODO(kdy1): Document this.
expand_union: bool
preserve_ref: bool
ignore_expand_prevention_for_top: bool
Used before calling access_property
, which does not accept Ref
as an
input.
Note: Reference type in top level intersections are treated as top-level types.
ignore_expand_prevention_for_all: bool
expand_params: bool
If true, expand
and expand_fully
will expand function
parameters.
expand_ret_ty: bool
If true, expand
and expand_fully
will expand function
parameters.
generic: ExpandGenericOpts
Trait Implementations
sourceimpl Clone for ExpandOpts
impl Clone for ExpandOpts
sourcefn clone(&self) -> ExpandOpts
fn clone(&self) -> ExpandOpts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExpandOpts
impl Debug for ExpandOpts
sourceimpl Default for ExpandOpts
impl Default for ExpandOpts
sourcefn default() -> ExpandOpts
fn default() -> ExpandOpts
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ExpandOpts> for ExpandOpts
impl PartialEq<ExpandOpts> for ExpandOpts
sourcefn eq(&self, other: &ExpandOpts) -> bool
fn eq(&self, other: &ExpandOpts) -> bool
sourceimpl TypeEq for ExpandOpts
impl TypeEq for ExpandOpts
impl Copy for ExpandOpts
impl StructuralPartialEq for ExpandOpts
Auto Trait Implementations
impl RefUnwindSafe for ExpandOpts
impl Send for ExpandOpts
impl Sync for ExpandOpts
impl Unpin for ExpandOpts
impl UnwindSafe for ExpandOpts
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