pub enum MutableStateResidency {
AlwaysDeviceMutable,
LayerScopedOffloadable,
}Expand description
Residency behaviors valid for mutable fixed-state tensors.
Variants§
AlwaysDeviceMutable
Small mutable state that remains on the execution device.
LayerScopedOffloadable
Mutable state promoted only for its owning layer.
Trait Implementations§
Source§impl Clone for MutableStateResidency
impl Clone for MutableStateResidency
Source§fn clone(&self) -> MutableStateResidency
fn clone(&self) -> MutableStateResidency
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 MutableStateResidency
Source§impl Debug for MutableStateResidency
impl Debug for MutableStateResidency
Source§impl<'de> Deserialize<'de> for MutableStateResidency
impl<'de> Deserialize<'de> for MutableStateResidency
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 MutableStateResidency
Source§impl From<MutableStateResidency> for StateResidencyClass
impl From<MutableStateResidency> for StateResidencyClass
Source§fn from(value: MutableStateResidency) -> Self
fn from(value: MutableStateResidency) -> Self
Converts to this type from the input type.
Source§impl Hash for MutableStateResidency
impl Hash for MutableStateResidency
Source§impl PartialEq for MutableStateResidency
impl PartialEq for MutableStateResidency
Source§impl Serialize for MutableStateResidency
impl Serialize for MutableStateResidency
impl StructuralPartialEq for MutableStateResidency
Auto Trait Implementations§
impl Freeze for MutableStateResidency
impl RefUnwindSafe for MutableStateResidency
impl Send for MutableStateResidency
impl Sync for MutableStateResidency
impl Unpin for MutableStateResidency
impl UnsafeUnpin for MutableStateResidency
impl UnwindSafe for MutableStateResidency
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