Struct starlark_map::ordered_set::OccupiedError
source · pub struct OccupiedError<'a, T> {
pub value: T,
pub occupied: &'a T,
}
Expand description
Error returned by try_insert
.
Fields§
§value: T
The value that was not inserted.
occupied: &'a T
The value that was already in the set.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for OccupiedError<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for OccupiedError<'a, T>
impl<'a, T> Sync for OccupiedError<'a, T>where
T: Sync,
impl<'a, T> Unpin for OccupiedError<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for OccupiedError<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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