Adjustable

Trait Adjustable 

Source
pub trait Adjustable<T>
where T: Copy + Default,
{ // Provided methods fn update<const WIDTH: usize, const HEIGHT: usize, const DEPTH: usize, const TIME: usize>( &mut self, _array_grid: &ArrayGrid<T, WIDTH, HEIGHT, DEPTH, TIME>, ) -> Result<(), UpdateError> { ... } fn adjust<const WIDTH: usize, const HEIGHT: usize, const DEPTH: usize, const TIME: usize>( &mut self, _array_grid: &ArrayGrid<T, WIDTH, HEIGHT, DEPTH, TIME>, ) -> Result<(), AdjustmentError> { ... } }

Provided Methods§

Source

fn update<const WIDTH: usize, const HEIGHT: usize, const DEPTH: usize, const TIME: usize>( &mut self, _array_grid: &ArrayGrid<T, WIDTH, HEIGHT, DEPTH, TIME>, ) -> Result<(), UpdateError>

The default implementation does nothing to keep update optional. Override this method to implement a node update when needed. For a sample implementation, see src/types/context_types/node_types_adjustable

Source

fn adjust<const WIDTH: usize, const HEIGHT: usize, const DEPTH: usize, const TIME: usize>( &mut self, _array_grid: &ArrayGrid<T, WIDTH, HEIGHT, DEPTH, TIME>, ) -> Result<(), AdjustmentError>

The default implementation does nothing to keep adjustment optional. Override this method to implement a node adjustment when needed. Depending on the type of node adjustment, select a 1, 2,3, or 4 dimensional array grid that contains the transformation data to apply to the node. For a sample implementation, see src/types/context_types/node_types_adjustable

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.

Implementors§

Source§

impl Adjustable<f64> for EcefSpace

Source§

impl Adjustable<f64> for EuclideanSpace

Source§

impl Adjustable<f64> for EuclideanSpacetime

Source§

impl Adjustable<f64> for EuclideanTime

Source§

impl Adjustable<f64> for GeoSpace

Source§

impl Adjustable<f64> for LorentzianSpacetime

Source§

impl Adjustable<f64> for LorentzianTime

Source§

impl Adjustable<f64> for MinkowskiSpacetime

Source§

impl Adjustable<f64> for NedSpace

Source§

impl Adjustable<f64> for QuaternionSpace

Source§

impl Adjustable<f64> for TangentSpacetime

Updates the position of the TangentSpacetime node. The metric tensor is updated via the ‘update_metric_tensor’ method.

Source§

impl Adjustable<u64> for DiscreteTime

Source§

impl Adjustable<u64> for EntropicTime

Source§

impl<T> Adjustable<T> for Data<T>
where T: Default + Copy + Clone + Hash + Eq + PartialEq + PartialOrd + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T>,