pub trait WorkspaceFor<P> {
type Workspace: DeviceWorkspace;
// Required method
fn required_workspace_bytes() -> usize;
}Expand description
Associates a solver family P with its workspace type and footprint.
The concrete P problem families and Workspace shapes are RFC 006-owned;
this trait fixes only the lifecycle/sizing contract.
Required Associated Types§
Sourcetype Workspace: DeviceWorkspace
type Workspace: DeviceWorkspace
The workspace type for problem family P.
Required Methods§
Sourcefn required_workspace_bytes() -> usize
fn required_workspace_bytes() -> usize
The required workspace footprint in bytes.
May be computed from core::mem::size_of::<Self::Workspace>() (decision M8).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".