pub struct TabListEntry { /* private fields */ }
Implementations§
Source§impl TabListEntry
impl TabListEntry
Sourcepub unsafe fn from_id(id: u8) -> Option<Self>
pub unsafe fn from_id(id: u8) -> Option<Self>
§Safety
id
must exist.
Entity
cannot outlive the entity in-game.
Entities
will use Weak
to make sure this dies when the entity is removed.
pub fn get_id(&self) -> u8
Sourcepub fn get_real_name(&self) -> String
pub fn get_real_name(&self) -> String
or “Player”
Sourcepub fn get_nick_name(&self) -> String
pub fn get_nick_name(&self) -> String
or “Text” or “list”
pub fn get_group(&self) -> String
pub fn get_rank(&self) -> u8
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabListEntry
impl RefUnwindSafe for TabListEntry
impl Send for TabListEntry
impl Sync for TabListEntry
impl Unpin for TabListEntry
impl UnwindSafe for TabListEntry
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