Struct azalea_core::game_type::OptionalGameType
source · pub struct OptionalGameType(pub Option<GameMode>);
Expand description
Rust doesn’t let us impl McBufReadable for Option<GameType>
so we have to
make a new type :(
Tuple Fields§
§0: Option<GameMode>
Trait Implementations§
source§impl Clone for OptionalGameType
impl Clone for OptionalGameType
source§fn clone(&self) -> OptionalGameType
fn clone(&self) -> OptionalGameType
Returns a copy of the value. Read more
1.0.0 · 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 OptionalGameType
impl Debug for OptionalGameType
source§impl From<OptionalGameType> for Option<GameMode>
impl From<OptionalGameType> for Option<GameMode>
source§fn from(optional_game_type: OptionalGameType) -> Self
fn from(optional_game_type: OptionalGameType) -> Self
Converts to this type from the input type.
source§impl Hash for OptionalGameType
impl Hash for OptionalGameType
source§impl McBufReadable for OptionalGameType
impl McBufReadable for OptionalGameType
source§impl McBufWritable for OptionalGameType
impl McBufWritable for OptionalGameType
impl Copy for OptionalGameType
Auto Trait Implementations§
impl Freeze for OptionalGameType
impl RefUnwindSafe for OptionalGameType
impl Send for OptionalGameType
impl Sync for OptionalGameType
impl Unpin for OptionalGameType
impl UnwindSafe for OptionalGameType
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