#[repr(C)]pub struct SelectUnselectCard {
pub selecting_player: CorePlayer,
pub able: bool,
pub cancelable: bool,
pub select_min: u8,
pub select_max: u8,
pub positions1: Vec<(CardCode, InfoLocation)>,
pub positions2: Vec<(CardCode, InfoLocation)>,
}Fields§
§selecting_player: CorePlayer§able: bool§cancelable: bool§select_min: u8§select_max: u8§positions1: Vec<(CardCode, InfoLocation)>§positions2: Vec<(CardCode, InfoLocation)>Implementations§
Source§impl SelectUnselectCard
impl SelectUnselectCard
pub fn into_message(self) -> Message
Trait Implementations§
Source§impl BinRead for SelectUnselectCard
impl BinRead for SelectUnselectCard
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 SelectUnselectCard
impl BinWrite for SelectUnselectCard
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 Clone for SelectUnselectCard
impl Clone for SelectUnselectCard
Source§fn clone(&self) -> SelectUnselectCard
fn clone(&self) -> SelectUnselectCard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectUnselectCard
impl Debug for SelectUnselectCard
Source§impl From<SelectUnselectCard> for Message
impl From<SelectUnselectCard> for Message
Source§fn from(value: SelectUnselectCard) -> Self
fn from(value: SelectUnselectCard) -> Self
Converts to this type from the input type.
Source§impl From<SelectUnselectCard> for Message
impl From<SelectUnselectCard> for Message
Source§fn from(value: SelectUnselectCard) -> Self
fn from(value: SelectUnselectCard) -> Self
Converts to this type from the input type.
Source§impl GameMessage for SelectUnselectCard
impl GameMessage for SelectUnselectCard
fn mask(&mut self)
fn should_mask(&self, _player: CorePlayer) -> bool
fn waiting_for(&self) -> Option<CorePlayer>
Source§impl Message for SelectUnselectCard
impl Message for SelectUnselectCard
fn message_type() -> MessageType
impl PureMessage for SelectUnselectCard
Source§impl<'m> TryFrom<&'m Message> for &'m SelectUnselectCard
impl<'m> TryFrom<&'m Message> for &'m SelectUnselectCard
Auto Trait Implementations§
impl Freeze for SelectUnselectCard
impl RefUnwindSafe for SelectUnselectCard
impl Send for SelectUnselectCard
impl Sync for SelectUnselectCard
impl Unpin for SelectUnselectCard
impl UnsafeUnpin for SelectUnselectCard
impl UnwindSafe for SelectUnselectCard
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