pub enum SceneDelta {
Removed,
Full(SceneState),
Partial {
background_color: Option<Color>,
lighting: Option<LightingCondition>,
detail_level: Option<f32>,
},
}Expand description
Scene delta - changes in scene state
Variants§
Implementations§
Source§impl SceneDelta
impl SceneDelta
pub fn compute(prev: &SceneState, curr: &SceneState) -> Option<SceneDelta>
pub fn full(scene: SceneState) -> SceneDelta
pub fn removed() -> SceneDelta
pub fn estimated_size(&self) -> usize
pub fn apply(&self, base: Option<&SceneState>) -> Option<SceneState>
Trait Implementations§
Source§impl Clone for SceneDelta
impl Clone for SceneDelta
Source§fn clone(&self) -> SceneDelta
fn clone(&self) -> SceneDelta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneDelta
impl RefUnwindSafe for SceneDelta
impl Send for SceneDelta
impl Sync for SceneDelta
impl Unpin for SceneDelta
impl UnsafeUnpin for SceneDelta
impl UnwindSafe for SceneDelta
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