pub enum InputGame {
Id(InputGameId),
ShortName(InputGameShortName),
}Expand description
Variants§
Id(InputGameId)
ShortName(InputGameShortName)
Trait Implementations§
Source§impl Deserializable for InputGame
impl Deserializable for InputGame
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<InputGameId> for InputGame
impl From<InputGameId> for InputGame
Source§fn from(x: InputGameId) -> Self
fn from(x: InputGameId) -> Self
Converts to this type from the input type.
Source§impl From<InputGameShortName> for InputGame
impl From<InputGameShortName> for InputGame
Source§fn from(x: InputGameShortName) -> Self
fn from(x: InputGameShortName) -> Self
Converts to this type from the input type.
Source§impl Serializable for InputGame
impl Serializable for InputGame
Source§impl TryFrom<InputGame> for InputGameId
impl TryFrom<InputGame> for InputGameId
Source§impl TryFrom<InputGame> for InputGameShortName
impl TryFrom<InputGame> for InputGameShortName
impl StructuralPartialEq for InputGame
Auto Trait Implementations§
impl Freeze for InputGame
impl RefUnwindSafe for InputGame
impl Send for InputGame
impl Sync for InputGame
impl Unpin for InputGame
impl UnsafeUnpin for InputGame
impl UnwindSafe for InputGame
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