pub struct ParsingOptions {
pub remove_withdrawn_candidates: bool,
pub remove_empty_ballots: bool,
pub optimize_layout: bool,
}Expand description
Options to control the parsing process.
Fields§
§remove_withdrawn_candidates: boolWhether to remove withdrawn candidates from the ballots they appear in.
remove_empty_ballots: boolWhether to remove ballots that rank no candidate. When
remove_withdrawn_candidates is true, this also removes ballots
that only rank withdrawn candidates.
optimize_layout: boolWhether to optimize the layout of ballots in memory. This may entail sorting the ballots.
Auto Trait Implementations§
impl Freeze for ParsingOptions
impl RefUnwindSafe for ParsingOptions
impl Send for ParsingOptions
impl Sync for ParsingOptions
impl Unpin for ParsingOptions
impl UnwindSafe for ParsingOptions
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