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]>)Expand description
Outlives(a, [b, c, d, …]) => ’a: ’b + ’c + ’d + …
Equal(RegionName, RegionName)Expand description
’a = ’b
Static(RegionName)Expand description
’a: ’static i.e. ’a = ’static and the user should just use ’static
Auto Trait Implementations
impl RefUnwindSafe for SuggestedConstraint
impl !Send for SuggestedConstraint
impl !Sync for SuggestedConstraint
impl Unpin for SuggestedConstraint
impl UnwindSafe for SuggestedConstraint
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]