#[non_exhaustive]pub enum StateSegmentLifetime {
Persistent,
FrameLocal,
}Expand description
Lifetime policy attached to a named mutable-state segment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Persistent
State survives from one model input or frame to the next.
FrameLocal
State is reused within one frame and reset at the frame boundary.
Trait Implementations§
Source§impl Clone for StateSegmentLifetime
impl Clone for StateSegmentLifetime
Source§fn clone(&self) -> StateSegmentLifetime
fn clone(&self) -> StateSegmentLifetime
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 Copy for StateSegmentLifetime
Source§impl Debug for StateSegmentLifetime
impl Debug for StateSegmentLifetime
impl Eq for StateSegmentLifetime
Source§impl Hash for StateSegmentLifetime
impl Hash for StateSegmentLifetime
Source§impl Ord for StateSegmentLifetime
impl Ord for StateSegmentLifetime
Source§fn cmp(&self, other: &StateSegmentLifetime) -> Ordering
fn cmp(&self, other: &StateSegmentLifetime) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for StateSegmentLifetime
impl PartialEq for StateSegmentLifetime
Source§impl PartialOrd for StateSegmentLifetime
impl PartialOrd for StateSegmentLifetime
impl StructuralPartialEq for StateSegmentLifetime
Auto Trait Implementations§
impl Freeze for StateSegmentLifetime
impl RefUnwindSafe for StateSegmentLifetime
impl Send for StateSegmentLifetime
impl Sync for StateSegmentLifetime
impl Unpin for StateSegmentLifetime
impl UnsafeUnpin for StateSegmentLifetime
impl UnwindSafe for StateSegmentLifetime
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