pub enum StateTensorPresence {
Required,
Optional,
PrefixRemainderNonZero(NonZeroU32),
PrefixAtLeast(NonZeroU32),
}Expand description
Condition under which a state tensor must be materialized.
Variants§
Required
Every persisted cache materializes the tensor.
Optional
The tensor may be present independently of prefix geometry.
PrefixRemainderNonZero(NonZeroU32)
Present exactly when the prefix has a non-zero remainder.
PrefixAtLeast(NonZeroU32)
Present exactly when the prefix contains one complete group.
Trait Implementations§
Source§impl Clone for StateTensorPresence
impl Clone for StateTensorPresence
Source§fn clone(&self) -> StateTensorPresence
fn clone(&self) -> StateTensorPresence
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 StateTensorPresence
Source§impl Debug for StateTensorPresence
impl Debug for StateTensorPresence
Source§impl<'de> Deserialize<'de> for StateTensorPresence
impl<'de> Deserialize<'de> for StateTensorPresence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StateTensorPresence
Source§impl Hash for StateTensorPresence
impl Hash for StateTensorPresence
Source§impl PartialEq for StateTensorPresence
impl PartialEq for StateTensorPresence
Source§impl Serialize for StateTensorPresence
impl Serialize for StateTensorPresence
impl StructuralPartialEq for StateTensorPresence
Auto Trait Implementations§
impl Freeze for StateTensorPresence
impl RefUnwindSafe for StateTensorPresence
impl Send for StateTensorPresence
impl Sync for StateTensorPresence
impl Unpin for StateTensorPresence
impl UnsafeUnpin for StateTensorPresence
impl UnwindSafe for StateTensorPresence
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