pub struct TeamFriendlyFlags(pub u8);
Tuple Fields§
§0: u8
Implementations§
Source§impl TeamFriendlyFlags
impl TeamFriendlyFlags
pub fn allow_friendly_fire(&self) -> bool
pub fn set_friendly_fire(&mut self, value: bool)
pub fn show_invisible_teammates(&self) -> bool
pub fn set_show_invisible_teammates(&mut self, value: bool)
Trait Implementations§
Source§impl Clone for TeamFriendlyFlags
impl Clone for TeamFriendlyFlags
Source§fn clone(&self) -> TeamFriendlyFlags
fn clone(&self) -> TeamFriendlyFlags
Returns a duplicate 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 TeamFriendlyFlags
impl Debug for TeamFriendlyFlags
Source§impl Default for TeamFriendlyFlags
impl Default for TeamFriendlyFlags
Source§fn default() -> TeamFriendlyFlags
fn default() -> TeamFriendlyFlags
Returns the “default value” for a type. Read more
Source§impl Deserialize for TeamFriendlyFlags
impl Deserialize for TeamFriendlyFlags
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for TeamFriendlyFlags
impl PartialEq for TeamFriendlyFlags
Source§impl Serialize for TeamFriendlyFlags
impl Serialize for TeamFriendlyFlags
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl Copy for TeamFriendlyFlags
impl Eq for TeamFriendlyFlags
impl StructuralPartialEq for TeamFriendlyFlags
Auto Trait Implementations§
impl Freeze for TeamFriendlyFlags
impl RefUnwindSafe for TeamFriendlyFlags
impl Send for TeamFriendlyFlags
impl Sync for TeamFriendlyFlags
impl Unpin for TeamFriendlyFlags
impl UnwindSafe for TeamFriendlyFlags
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