#[repr(C)]pub struct SelectSum {
pub select_mode: SelectSumMode,
pub selecting_player: CorePlayer,
pub select_sum_value: i32,
pub select_min: u8,
pub select_max: u8,
pub must_select_cards: Vec<(CardPosition<true, false, false>, i32)>,
pub select_cards: Vec<(CardPosition<true, false, false>, i32)>,
}Fields§
§select_mode: SelectSumMode§selecting_player: CorePlayer§select_sum_value: i32§select_min: u8§select_max: u8§must_select_cards: Vec<(CardPosition<true, false, false>, i32)>§select_cards: Vec<(CardPosition<true, false, false>, i32)>Implementations§
Trait Implementations§
Source§impl BinRead for SelectSum
impl BinRead for SelectSum
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for SelectSum
impl BinWrite for SelectSum
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§impl GameMessage for SelectSum
impl GameMessage for SelectSum
fn mask(&mut self)
fn waiting_for(&self) -> Option<CorePlayer>
fn should_mask(&self, _player: CorePlayer) -> bool
Source§impl Message for SelectSum
impl Message for SelectSum
fn message_type() -> MessageType
impl PureMessage for SelectSum
Auto Trait Implementations§
impl Freeze for SelectSum
impl RefUnwindSafe for SelectSum
impl Send for SelectSum
impl Sync for SelectSum
impl Unpin for SelectSum
impl UnsafeUnpin for SelectSum
impl UnwindSafe for SelectSum
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