pub struct BackendMechanismCapabilities { /* private fields */ }Expand description
Family- and execution-class-neutral backend mechanism report.
Implementations§
Source§impl BackendMechanismCapabilities
impl BackendMechanismCapabilities
Sourcepub fn new(
operators: NeuralOperatorCapabilities,
weight_lowerings: Vec<WeightLoweringCapability>,
weight_residencies: Vec<WeightResidencyMechanism>,
state: StateMechanismCapabilities,
) -> Self
pub fn new( operators: NeuralOperatorCapabilities, weight_lowerings: Vec<WeightLoweringCapability>, weight_residencies: Vec<WeightResidencyMechanism>, state: StateMechanismCapabilities, ) -> Self
Creates a fail-closed mechanism report.
Sourcepub const fn with_session(self, session: SessionCapabilities) -> Self
pub const fn with_session(self, session: SessionCapabilities) -> Self
Adds supported session-observation and persistence mechanisms.
Sourcepub const fn with_prompt_cache(self, supported: bool) -> Self
pub const fn with_prompt_cache(self, supported: bool) -> Self
Declares prompt-cache persistence support.
Sourcepub const fn with_exact_completion(self, supported: bool) -> Self
pub const fn with_exact_completion(self, supported: bool) -> Self
Declares exact native-completion ownership support.
Sourcepub fn with_grouped_operations(
self,
operations: impl IntoIterator<Item = GroupedOperationRequirement>,
) -> Self
pub fn with_grouped_operations( self, operations: impl IntoIterator<Item = GroupedOperationRequirement>, ) -> Self
Declares exact grouped operation mechanisms.
Sourcepub const fn with_indexed_movement(self, supported: bool) -> Self
pub const fn with_indexed_movement(self, supported: bool) -> Self
Declares generic indexed discovery, slicing, remapping, and concatenation.
Sourcepub const fn with_addressable_storage(
self,
capabilities: AddressableStorageCapabilities,
) -> Self
pub const fn with_addressable_storage( self, capabilities: AddressableStorageCapabilities, ) -> Self
Declares generic independently addressable storage facilities.
Sourcepub const fn operators(&self) -> NeuralOperatorCapabilities
pub const fn operators(&self) -> NeuralOperatorCapabilities
Returns neural-operation mechanisms.
Sourcepub fn weight_lowerings(&self) -> &[WeightLoweringCapability]
pub fn weight_lowerings(&self) -> &[WeightLoweringCapability]
Returns source-to-executable weight-lowering mechanisms.
Sourcepub fn weight_residencies(&self) -> &[WeightResidencyMechanism]
pub fn weight_residencies(&self) -> &[WeightResidencyMechanism]
Returns weight-residency mechanisms.
Sourcepub const fn state(&self) -> &StateMechanismCapabilities
pub const fn state(&self) -> &StateMechanismCapabilities
Returns exact mutable-state component and lifecycle mechanisms.
Sourcepub const fn session(&self) -> SessionCapabilities
pub const fn session(&self) -> SessionCapabilities
Returns session-observation and persistence mechanisms.
Sourcepub const fn prompt_cache(&self) -> bool
pub const fn prompt_cache(&self) -> bool
Returns whether prompt-cache persistence is supported.
Sourcepub const fn exact_completion(&self) -> bool
pub const fn exact_completion(&self) -> bool
Returns whether exact native-completion ownership is supported.
Sourcepub fn grouped_operations(&self) -> &[GroupedOperationRequirement]
pub fn grouped_operations(&self) -> &[GroupedOperationRequirement]
Returns exact grouped operation mechanisms.
Sourcepub const fn indexed_movement(&self) -> bool
pub const fn indexed_movement(&self) -> bool
Returns whether generic indexed movement is implemented.
Sourcepub const fn addressable_storage(
&self,
) -> Option<AddressableStorageCapabilities>
pub const fn addressable_storage( &self, ) -> Option<AddressableStorageCapabilities>
Returns independently addressable storage facilities, when implemented.
Trait Implementations§
Source§impl Clone for BackendMechanismCapabilities
impl Clone for BackendMechanismCapabilities
Source§fn clone(&self) -> BackendMechanismCapabilities
fn clone(&self) -> BackendMechanismCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more