Struct stc_ts_file_analyzer::analyzer::expr::type_cast::CastableOpts
source · [−]pub(crate) struct CastableOpts {
pub disallow_different_classes: bool,
pub allow_assignment_to_param_constraint: bool,
pub disallow_special_assignment_to_empty_class: bool,
}
Fields
disallow_different_classes: bool
true
if we are checking for A extends B
relation.
allow_assignment_to_param_constraint: bool
disallow_special_assignment_to_empty_class: bool
Trait Implementations
sourceimpl Clone for CastableOpts
impl Clone for CastableOpts
sourcefn clone(&self) -> CastableOpts
fn clone(&self) -> CastableOpts
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 CastableOpts
impl Debug for CastableOpts
sourceimpl Default for CastableOpts
impl Default for CastableOpts
sourcefn default() -> CastableOpts
fn default() -> CastableOpts
Returns the “default value” for a type. Read more
impl Copy for CastableOpts
Auto Trait Implementations
impl RefUnwindSafe for CastableOpts
impl Send for CastableOpts
impl Sync for CastableOpts
impl Unpin for CastableOpts
impl UnwindSafe for CastableOpts
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