pub enum Origin<X = Comparand, V = ConstId> {
Source(X),
Value(V),
Total(usize),
}Expand description
What an entry adds to a total when its group is produced.
Variants§
Trait Implementations§
impl<X: Eq, V: Eq> Eq for Origin<X, V>
impl<X: PartialEq, V: PartialEq> StructuralPartialEq for Origin<X, V>
Auto Trait Implementations§
impl<X, V> Freeze for Origin<X, V>
impl<X, V> RefUnwindSafe for Origin<X, V>where
X: RefUnwindSafe,
V: RefUnwindSafe,
impl<X, V> Send for Origin<X, V>
impl<X, V> Sync for Origin<X, V>
impl<X, V> Unpin for Origin<X, V>
impl<X, V> UnsafeUnpin for Origin<X, V>where
X: UnsafeUnpin,
V: UnsafeUnpin,
impl<X, V> UnwindSafe for Origin<X, V>where
X: UnwindSafe,
V: 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