Trait Parameters

Source
pub trait Parameters
where Self: Copy + Debug,
{ // Required methods fn get(&self, index: usize) -> &Scalar; fn get_slice(&self, index: RangeFrom<usize>) -> &[Scalar] ; }
Expand description

Methods for lists of constitutive model parameters.

Required Methods§

Source

fn get(&self, index: usize) -> &Scalar

Source

fn get_slice(&self, index: RangeFrom<usize>) -> &[Scalar]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<const N: usize> Parameters for &[Scalar; N]

Source§

fn get(&self, index: usize) -> &Scalar

Source§

fn get_slice(&self, index: RangeFrom<usize>) -> &[Scalar]

Source§

impl<const N: usize> Parameters for [Scalar; N]

Source§

fn get(&self, index: usize) -> &Scalar

Source§

fn get_slice(&self, index: RangeFrom<usize>) -> &[Scalar]

Implementors§