pub enum Entity<Unbound, Bound> {
Unbound(Unbound),
Bound(Bound),
}Variants§
Implementations§
Trait Implementations§
Source§impl<Unbound: Ord, Bound: Ord> Ord for Entity<Unbound, Bound>
impl<Unbound: Ord, Bound: Ord> Ord for Entity<Unbound, Bound>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Unbound: PartialOrd, Bound: PartialOrd> PartialOrd for Entity<Unbound, Bound>
impl<Unbound: PartialOrd, Bound: PartialOrd> PartialOrd for Entity<Unbound, Bound>
impl<Unbound: Eq, Bound: Eq> Eq for Entity<Unbound, Bound>
impl<Unbound, Bound> StructuralPartialEq for Entity<Unbound, Bound>
Auto Trait Implementations§
impl<Unbound, Bound> Freeze for Entity<Unbound, Bound>
impl<Unbound, Bound> RefUnwindSafe for Entity<Unbound, Bound>where
Unbound: RefUnwindSafe,
Bound: RefUnwindSafe,
impl<Unbound, Bound> Send for Entity<Unbound, Bound>
impl<Unbound, Bound> Sync for Entity<Unbound, Bound>
impl<Unbound, Bound> Unpin for Entity<Unbound, Bound>
impl<Unbound, Bound> UnwindSafe for Entity<Unbound, Bound>where
Unbound: UnwindSafe,
Bound: UnwindSafe,
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