Skip to main content

TideModel

Trait TideModel 

Source
pub trait TideModel {
    // Required method
    fn height_of_tide(
        &self,
        at: Position,
        when: Instant<Utc>,
    ) -> Result<Distance>;
}
Expand description

Tide: tables, harmonic prediction, gauge.

Returns the height of water above chart datum, so depth = charted depth + height of tide.

Required Methods§

Source

fn height_of_tide(&self, at: Position, when: Instant<Utc>) -> Result<Distance>

Height of tide at at, time when.

§Errors

KernelError::OutsideValidity outside the model’s coverage; any other error the model data raises.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§