Skip to main content

validate_bindings

Function validate_bindings 

Source
pub fn validate_bindings<B>(
    bindings: &[BindingRef<'_, B>],
    max_bindings: u32,
) -> Result<(), BackendError>
Expand description

Slot/count uniqueness helper for program bindings.

Structural only: nonempty, bounded by max_bindings, and unique slots. This is incomplete for pre-admission checks – it does not enforce access/usage compatibility required before backend admission. Prefer BindingRef::validate_for_submit before Accelerator::submit.