pub struct Submission<AuthId: Eq + Hash, ProductId: Eq + Hash> { /* private fields */ }Expand description
A submission is a full expression of an agent’s preferences in an auction.
Implementations§
Source§impl<AuthId: Eq + Hash + Clone, ProductId: Eq + Hash + Clone> Submission<AuthId, ProductId>
impl<AuthId: Eq + Hash + Clone, ProductId: Eq + Hash + Clone> Submission<AuthId, ProductId>
Sourcepub fn new<A: IntoIterator<Item = (AuthId, Auth<ProductId>)>, B: IntoIterator<Item = (Group<AuthId>, Cost)>>(
auths: A,
costs: B,
) -> Option<Self>
pub fn new<A: IntoIterator<Item = (AuthId, Auth<ProductId>)>, B: IntoIterator<Item = (Group<AuthId>, Cost)>>( auths: A, costs: B, ) -> Option<Self>
Creates a new submission from the provided auths and costs. All data is assumed to be valid.
Trait Implementations§
Auto Trait Implementations§
impl<AuthId, ProductId> Freeze for Submission<AuthId, ProductId>
impl<AuthId, ProductId> RefUnwindSafe for Submission<AuthId, ProductId>where
AuthId: RefUnwindSafe,
ProductId: RefUnwindSafe,
impl<AuthId, ProductId> Send for Submission<AuthId, ProductId>
impl<AuthId, ProductId> Sync for Submission<AuthId, ProductId>
impl<AuthId, ProductId> Unpin for Submission<AuthId, ProductId>
impl<AuthId, ProductId> UnwindSafe for Submission<AuthId, ProductId>where
AuthId: UnwindSafe,
ProductId: 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
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 more