Skip to main content

BackendMechanismCapabilities

Struct BackendMechanismCapabilities 

Source
pub struct BackendMechanismCapabilities { /* private fields */ }
Expand description

Family- and execution-class-neutral backend mechanism report.

Implementations§

Source§

impl BackendMechanismCapabilities

Source

pub fn new( operators: NeuralOperatorCapabilities, weight_lowerings: Vec<WeightLoweringCapability>, weight_residencies: Vec<WeightResidencyMechanism>, state: StateMechanismCapabilities, ) -> Self

Creates a fail-closed mechanism report.

Source

pub const fn with_session(self, session: SessionCapabilities) -> Self

Adds supported session-observation and persistence mechanisms.

Source

pub const fn with_prompt_cache(self, supported: bool) -> Self

Declares prompt-cache persistence support.

Source

pub const fn with_exact_completion(self, supported: bool) -> Self

Declares exact native-completion ownership support.

Source

pub fn with_grouped_operations( self, operations: impl IntoIterator<Item = GroupedOperationRequirement>, ) -> Self

Declares exact grouped operation mechanisms.

Source

pub const fn with_indexed_movement(self, supported: bool) -> Self

Declares generic indexed discovery, slicing, remapping, and concatenation.

Source

pub const fn with_addressable_storage( self, capabilities: AddressableStorageCapabilities, ) -> Self

Declares generic independently addressable storage facilities.

Source

pub const fn operators(&self) -> NeuralOperatorCapabilities

Returns neural-operation mechanisms.

Source

pub fn weight_lowerings(&self) -> &[WeightLoweringCapability]

Returns source-to-executable weight-lowering mechanisms.

Source

pub fn weight_residencies(&self) -> &[WeightResidencyMechanism]

Returns weight-residency mechanisms.

Source

pub const fn state(&self) -> &StateMechanismCapabilities

Returns exact mutable-state component and lifecycle mechanisms.

Source

pub const fn session(&self) -> SessionCapabilities

Returns session-observation and persistence mechanisms.

Source

pub const fn prompt_cache(&self) -> bool

Returns whether prompt-cache persistence is supported.

Source

pub const fn exact_completion(&self) -> bool

Returns whether exact native-completion ownership is supported.

Source

pub fn grouped_operations(&self) -> &[GroupedOperationRequirement]

Returns exact grouped operation mechanisms.

Source

pub const fn indexed_movement(&self) -> bool

Returns whether generic indexed movement is implemented.

Source

pub const fn addressable_storage( &self, ) -> Option<AddressableStorageCapabilities>

Returns independently addressable storage facilities, when implemented.

Trait Implementations§

Source§

impl Clone for BackendMechanismCapabilities

Source§

fn clone(&self) -> BackendMechanismCapabilities

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BackendMechanismCapabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BackendMechanismCapabilities

Source§

impl PartialEq for BackendMechanismCapabilities

Source§

fn eq(&self, other: &BackendMechanismCapabilities) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BackendMechanismCapabilities

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.