pub trait Adjustable<T>{
// 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§
Sourcefn 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 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
Sourcefn 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>
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§
impl Adjustable<f64> for EcefSpace
impl Adjustable<f64> for EuclideanSpace
impl Adjustable<f64> for EuclideanSpacetime
impl Adjustable<f64> for EuclideanTime
impl Adjustable<f64> for GeoSpace
impl Adjustable<f64> for LorentzianSpacetime
impl Adjustable<f64> for LorentzianTime
impl Adjustable<f64> for MinkowskiSpacetime
impl Adjustable<f64> for NedSpace
impl Adjustable<f64> for QuaternionSpace
impl Adjustable<f64> for TangentSpacetime
Updates the position of the TangentSpacetime node. The metric tensor is updated via the ‘update_metric_tensor’ method.