pub struct Lineup {
pub qb: NflPlayerId,
pub rb1: NflPlayerId,
pub rb2: NflPlayerId,
pub wr1: NflPlayerId,
pub wr2: NflPlayerId,
pub wr3: NflPlayerId,
pub te: NflPlayerId,
pub flex: NflPlayerId,
pub def: TeamAbbr,
}Expand description
Total — an entry exists in a contest, so all nine slots are filled.
Fields§
§qb: NflPlayerId§rb1: NflPlayerId§rb2: NflPlayerId§wr1: NflPlayerId§wr2: NflPlayerId§wr3: NflPlayerId§te: NflPlayerId§flex: NflPlayerId§def: TeamAbbrImplementations§
Source§impl Lineup
impl Lineup
Sourcepub fn player_slots(&self) -> [(RosterSlot, &NflPlayerId); 8]
pub fn player_slots(&self) -> [(RosterSlot, &NflPlayerId); 8]
The eight player slots in roster order, each paired with the slot it fills. Kept next to the fields so a caller that walks the lineup cannot miss a slot.
Sourcepub fn player_ids(&self) -> [&NflPlayerId; 8]
pub fn player_ids(&self) -> [&NflPlayerId; 8]
The eight player ids in roster order.
Trait Implementations§
impl StructuralPartialEq for Lineup
Auto Trait Implementations§
impl Freeze for Lineup
impl RefUnwindSafe for Lineup
impl Send for Lineup
impl Sync for Lineup
impl Unpin for Lineup
impl UnsafeUnpin for Lineup
impl UnwindSafe for Lineup
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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