Struct naia_shared::EntityProperty
source · [−]pub struct EntityProperty { /* private fields */ }
Implementations
sourceimpl EntityProperty
impl EntityProperty
pub fn new(mutator_index: u8) -> Self
pub fn mirror(&mut self, other: &EntityProperty)
pub fn handle(&self) -> Option<EntityHandle>
pub fn write(
&self,
writer: &mut dyn BitWrite,
converter: &dyn NetEntityHandleConverter
)
pub fn new_read(
reader: &mut BitReader<'_>,
mutator_index: u8,
converter: &dyn NetEntityHandleConverter
) -> Self
pub fn read_write(bit_reader: &mut BitReader<'_>, bit_writer: &mut BitWriter)
pub fn read(
&mut self,
reader: &mut BitReader<'_>,
converter: &dyn NetEntityHandleConverter
)
pub fn equals(&self, other: &EntityProperty) -> bool
pub fn set_mutator(&mut self, mutator: &PropertyMutator)
pub fn get<E: Copy + Eq + Hash>(
&self,
handler: &dyn EntityHandleConverter<E>
) -> Option<E>
pub fn set<E: Copy + Eq + Hash>(
&mut self,
handler: &dyn EntityHandleConverter<E>,
entity: &E
)
Trait Implementations
sourceimpl Clone for EntityProperty
impl Clone for EntityProperty
sourcefn clone(&self) -> EntityProperty
fn clone(&self) -> EntityProperty
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for EntityProperty
impl Send for EntityProperty
impl Sync for EntityProperty
impl Unpin for EntityProperty
impl !UnwindSafe for EntityProperty
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more