pub struct BorrowConflict {
pub variable: VarId,
pub existing: ActiveBorrowV2,
pub new_kind: BorrowKind,
pub new_line: u32,
}Expand description
A detected borrow conflict.
Fields§
§variable: VarIdThe variable being borrowed.
existing: ActiveBorrowV2The existing borrow that conflicts.
new_kind: BorrowKindThe new borrow kind that was attempted.
new_line: u32Line where the new borrow was attempted.
Implementations§
Source§impl BorrowConflict
impl BorrowConflict
Sourcepub fn new(
variable: VarId,
existing: ActiveBorrowV2,
new_kind: BorrowKind,
new_line: u32,
) -> Self
pub fn new( variable: VarId, existing: ActiveBorrowV2, new_kind: BorrowKind, new_line: u32, ) -> Self
Create a new borrow conflict.
Trait Implementations§
Source§impl Clone for BorrowConflict
impl Clone for BorrowConflict
Source§fn clone(&self) -> BorrowConflict
fn clone(&self) -> BorrowConflict
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 moreSource§impl Debug for BorrowConflict
impl Debug for BorrowConflict
Source§impl Display for BorrowConflict
impl Display for BorrowConflict
Source§impl PartialEq for BorrowConflict
impl PartialEq for BorrowConflict
Source§fn eq(&self, other: &BorrowConflict) -> bool
fn eq(&self, other: &BorrowConflict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BorrowConflict
impl StructuralPartialEq for BorrowConflict
Auto Trait Implementations§
impl Freeze for BorrowConflict
impl RefUnwindSafe for BorrowConflict
impl Send for BorrowConflict
impl Sync for BorrowConflict
impl Unpin for BorrowConflict
impl UnsafeUnpin for BorrowConflict
impl UnwindSafe for BorrowConflict
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more