Struct stc_ts_file_analyzer::analyzer::generic::expander::ExtendsOpts
source · [−]pub(crate) struct ExtendsOpts {
pub disallow_different_classes: bool,
pub strict: bool,
pub allow_missing_fields: bool,
}
Expand description
All fields default to false.
Fields
disallow_different_classes: bool
If true, different classes are treated as not extending each other even though those are empty.
false
by default because the type Foo
in code below is 1.
class C {}
class D {}
type Foo = C extends D ? 1 : 0
strict: bool
strictSubtype
of tsc
.
allow_missing_fields: bool
Trait Implementations
sourceimpl Clone for ExtendsOpts
impl Clone for ExtendsOpts
sourcefn clone(&self) -> ExtendsOpts
fn clone(&self) -> ExtendsOpts
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 ExtendsOpts
impl Debug for ExtendsOpts
sourceimpl Default for ExtendsOpts
impl Default for ExtendsOpts
sourcefn default() -> ExtendsOpts
fn default() -> ExtendsOpts
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ExtendsOpts> for ExtendsOpts
impl PartialEq<ExtendsOpts> for ExtendsOpts
sourcefn eq(&self, other: &ExtendsOpts) -> bool
fn eq(&self, other: &ExtendsOpts) -> bool
impl Copy for ExtendsOpts
impl StructuralPartialEq for ExtendsOpts
Auto Trait Implementations
impl RefUnwindSafe for ExtendsOpts
impl Send for ExtendsOpts
impl Sync for ExtendsOpts
impl Unpin for ExtendsOpts
impl UnwindSafe for ExtendsOpts
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