pub struct ComponentDeltaRef<'a> {
pub component_id: ComponentId,
pub version: u64,
pub flags: u8,
pub bytes: &'a [u8],
}Expand description
Borrowed component delta inside an EntityDeltaRef.
Fields§
§component_id: ComponentIdComponent id.
version: u64Component version.
flags: u8Runtime-defined flags.
bytes: &'a [u8]Encoded component bytes borrowed from the input frame.
Implementations§
Source§impl ComponentDeltaRef<'_>
impl ComponentDeltaRef<'_>
Sourcepub fn to_owned(self) -> ComponentDelta
pub fn to_owned(self) -> ComponentDelta
Materializes the compatible owned component delta shape.
Trait Implementations§
Source§impl<'a> Clone for ComponentDeltaRef<'a>
impl<'a> Clone for ComponentDeltaRef<'a>
Source§fn clone(&self) -> ComponentDeltaRef<'a>
fn clone(&self) -> ComponentDeltaRef<'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 ComponentDeltaRef<'a>
Source§impl<'a> Debug for ComponentDeltaRef<'a>
impl<'a> Debug for ComponentDeltaRef<'a>
impl<'a> Eq for ComponentDeltaRef<'a>
Source§impl<'a> PartialEq for ComponentDeltaRef<'a>
impl<'a> PartialEq for ComponentDeltaRef<'a>
impl<'a> StructuralPartialEq for ComponentDeltaRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentDeltaRef<'a>
impl<'a> RefUnwindSafe for ComponentDeltaRef<'a>
impl<'a> Send for ComponentDeltaRef<'a>
impl<'a> Sync for ComponentDeltaRef<'a>
impl<'a> Unpin for ComponentDeltaRef<'a>
impl<'a> UnsafeUnpin for ComponentDeltaRef<'a>
impl<'a> UnwindSafe for ComponentDeltaRef<'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