pub struct EntityDeltaRef<'a> {
pub entity_id: EntityId,
pub owner_epoch: OwnerEpoch,
/* private fields */
}Expand description
Borrowed entity delta inside a ReplicationFrameRef.
Fields§
§entity_id: EntityIdEntity being updated.
owner_epoch: OwnerEpochOwner epoch observed by the sender.
Implementations§
Source§impl<'a> EntityDeltaRef<'a>
impl<'a> EntityDeltaRef<'a>
Sourcepub const fn encoded_component_count(self) -> usize
pub const fn encoded_component_count(self) -> usize
Number of component deltas encoded for this entity.
Sourcepub fn components(self) -> ComponentDeltaRefIter<'a> ⓘ
pub fn components(self) -> ComponentDeltaRefIter<'a> ⓘ
Iterates component deltas without allocating or copying payload bytes.
Sourcepub fn to_owned(self) -> EntityDelta
pub fn to_owned(self) -> EntityDelta
Materializes the compatible owned entity delta shape.
Trait Implementations§
Source§impl<'a> Clone for EntityDeltaRef<'a>
impl<'a> Clone for EntityDeltaRef<'a>
Source§fn clone(&self) -> EntityDeltaRef<'a>
fn clone(&self) -> EntityDeltaRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for EntityDeltaRef<'a>
Source§impl<'a> Debug for EntityDeltaRef<'a>
impl<'a> Debug for EntityDeltaRef<'a>
impl<'a> Eq for EntityDeltaRef<'a>
Source§impl<'a> PartialEq for EntityDeltaRef<'a>
impl<'a> PartialEq for EntityDeltaRef<'a>
impl<'a> StructuralPartialEq for EntityDeltaRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntityDeltaRef<'a>
impl<'a> RefUnwindSafe for EntityDeltaRef<'a>
impl<'a> Send for EntityDeltaRef<'a>
impl<'a> Sync for EntityDeltaRef<'a>
impl<'a> Unpin for EntityDeltaRef<'a>
impl<'a> UnsafeUnpin for EntityDeltaRef<'a>
impl<'a> UnwindSafe for EntityDeltaRef<'a>
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