Enum rustc_mir::borrow_check::diagnostics::outlives_suggestion::SuggestedConstraint [−][src]
enum SuggestedConstraint {
Outlives(RegionName, SmallVec<[RegionName; 2]>),
Equal(RegionName, RegionName),
Static(RegionName),
}Expand description
The different things we could suggest.
Variants
Outlives(RegionName, SmallVec<[RegionName; 2]>)Outlives(a, [b, c, d, …]) => ’a: ’b + ’c + ’d + …
Equal(RegionName, RegionName)’a = ’b
Static(RegionName)’a: ’static i.e. ’a = ’static and the user should just use ’static
Auto Trait Implementations
impl RefUnwindSafe for SuggestedConstraintimpl !Send for SuggestedConstraintimpl !Sync for SuggestedConstraintimpl Unpin for SuggestedConstraintimpl UnwindSafe for SuggestedConstraintBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 256 bytes