pub struct Delta {
pub id: VisualStateId,
pub keyframe_ref: VisualStateId,
pub prev_delta_ref: Option<VisualStateId>,
pub timestamp: StateTime,
pub delta_type: DeltaType,
pub face_delta: Option<FaceDelta>,
pub pose_delta: Option<PoseDelta>,
pub scene_delta: Option<SceneDelta>,
pub sequence: u64,
}Expand description
Delta - Changes since last keyframe or delta
Fields§
§id: VisualStateIdDelta identifier
keyframe_ref: VisualStateIdReference to keyframe this delta is based on
prev_delta_ref: Option<VisualStateId>Reference to previous delta (if any)
timestamp: StateTimeTimestamp
delta_type: DeltaTypeWhat changed
face_delta: Option<FaceDelta>Face delta (if changed)
pose_delta: Option<PoseDelta>Pose delta (if changed)
scene_delta: Option<SceneDelta>Scene delta (if changed)
sequence: u64Sequence number
Implementations§
Source§impl Delta
impl Delta
Sourcepub fn from_states(
prev: &VisualState,
curr: &VisualState,
keyframe_ref: VisualStateId,
) -> Self
pub fn from_states( prev: &VisualState, curr: &VisualState, keyframe_ref: VisualStateId, ) -> Self
Create a delta from two visual states
Sourcepub fn estimated_size(&self) -> usize
pub fn estimated_size(&self) -> usize
Estimated size in bytes
Sourcepub fn apply(&self, base: &VisualState) -> VisualState
pub fn apply(&self, base: &VisualState) -> VisualState
Apply this delta to a visual state
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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