pub struct PlacedProposal {
pub number: u32,
pub post_id: PostId,
pub borda: u32,
pub seats: u32,
pub position_sum: u32,
pub tied_with_next: bool,
}Expand description
A proposal’s place in an AgendaRanking
Fields§
§number: u32The P-number the seats ranked it by
post_id: PostIdThe proposal
borda: u32§seats: u32How many seats ranked it at all
position_sum: u32Sum of its 1-based positions over those seats; the mean position
is position_sum / seats. Integers only, because the entry is
signed and a float has no canonical text form.
tied_with_next: boolTied with the next entry on every criterion, so the order between the two is by P-number and arbitrary
Trait Implementations§
Source§impl Clone for PlacedProposal
impl Clone for PlacedProposal
Source§impl Debug for PlacedProposal
impl Debug for PlacedProposal
Source§impl<'de> Deserialize<'de> for PlacedProposal
impl<'de> Deserialize<'de> for PlacedProposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlacedProposal
Source§impl PartialEq for PlacedProposal
impl PartialEq for PlacedProposal
Source§impl Serialize for PlacedProposal
impl Serialize for PlacedProposal
impl StructuralPartialEq for PlacedProposal
Auto Trait Implementations§
impl Freeze for PlacedProposal
impl RefUnwindSafe for PlacedProposal
impl Send for PlacedProposal
impl Sync for PlacedProposal
impl Unpin for PlacedProposal
impl UnsafeUnpin for PlacedProposal
impl UnwindSafe for PlacedProposal
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