#[non_exhaustive]pub enum WeightResidencyMechanism {
Resident,
Windowed,
DiskStreamed,
}Expand description
Weight-residency mechanism implemented by a backend.
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.
Resident
All parameters remain device resident.
Windowed
A bounded device window is staged from host storage.
DiskStreamed
Bounded host and device windows are populated from disk.
Trait Implementations§
Source§impl Clone for WeightResidencyMechanism
impl Clone for WeightResidencyMechanism
Source§fn clone(&self) -> WeightResidencyMechanism
fn clone(&self) -> WeightResidencyMechanism
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 WeightResidencyMechanism
Source§impl Debug for WeightResidencyMechanism
impl Debug for WeightResidencyMechanism
impl Eq for WeightResidencyMechanism
Source§impl PartialEq for WeightResidencyMechanism
impl PartialEq for WeightResidencyMechanism
impl StructuralPartialEq for WeightResidencyMechanism
Auto Trait Implementations§
impl Freeze for WeightResidencyMechanism
impl RefUnwindSafe for WeightResidencyMechanism
impl Send for WeightResidencyMechanism
impl Sync for WeightResidencyMechanism
impl Unpin for WeightResidencyMechanism
impl UnsafeUnpin for WeightResidencyMechanism
impl UnwindSafe for WeightResidencyMechanism
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