pub struct InputArguments { /* private fields */ }
Implementations§
Source§impl InputArguments
impl InputArguments
pub fn new(players: Vec<Option<PlayerInputArguments>>) -> Self
Sourcepub fn player(&self, player: i32) -> Option<&PlayerInputArguments>
pub fn player(&self, player: i32) -> Option<&PlayerInputArguments>
Get the input for a specific player, will be None if there is no available player
Trait Implementations§
Source§impl Default for InputArguments
impl Default for InputArguments
Source§fn default() -> InputArguments
fn default() -> InputArguments
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputArguments
impl<'de> Deserialize<'de> for InputArguments
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
Auto Trait Implementations§
impl Freeze for InputArguments
impl RefUnwindSafe for InputArguments
impl Send for InputArguments
impl Sync for InputArguments
impl Unpin for InputArguments
impl UnwindSafe for InputArguments
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