pub enum TypeImpactIssue {
FieldUsageInType {
container_type: SymbolId,
},
TraitBoundUsage {
bound_count: usize,
},
ParameterUsage {
usage_count: usize,
},
ReturnTypeUsage {
usage_count: usize,
},
ImplUsage {
usage_count: usize,
},
}Expand description
Specific issue found during type impact analysis.
Variants§
FieldUsageInType
Type is used as a field in another type - struct literal may need update.
TraitBoundUsage
Type is used in trait bound - may break trait implementation.
ParameterUsage
Type is used in function parameter - callers may need update.
ReturnTypeUsage
Type is used in return position - callers may need update.
ImplUsage
Type is used in impl block - impl may need update.
Trait Implementations§
Source§impl Clone for TypeImpactIssue
impl Clone for TypeImpactIssue
Source§fn clone(&self) -> TypeImpactIssue
fn clone(&self) -> TypeImpactIssue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypeImpactIssue
impl RefUnwindSafe for TypeImpactIssue
impl Send for TypeImpactIssue
impl Sync for TypeImpactIssue
impl Unpin for TypeImpactIssue
impl UnsafeUnpin for TypeImpactIssue
impl UnwindSafe for TypeImpactIssue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more