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(a, [b, c, d, …]) => ’a: ’b + ’c + ’d + …
Tuple Fields of Outlives
0: RegionName1: SmallVec<[RegionName; 2]>’a = ’b
Tuple Fields of Equal
0: RegionName1: RegionName’a: ’static i.e. ’a = ’static and the user should just use ’static
Tuple Fields of Static
0: RegionNameAuto Trait Implementations
impl RefUnwindSafe for SuggestedConstraint
impl !Send for SuggestedConstraint
impl !Sync for SuggestedConstraint
impl Unpin for SuggestedConstraint
impl UnwindSafe for SuggestedConstraint
Blanket 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