Skip to main content

TupleDelta

Trait TupleDelta 

Source
pub trait TupleDelta:
    Sized
    + Copy
    + 'static {
    // Required methods
    fn is_point() -> bool;
    fn new(position: u16, x: i32, y: i32) -> Self;
}
Expand description

Trait for deltas that are computed in a tuple variation store.

Required Methods§

Source

fn is_point() -> bool

Returns true if the delta is a point and requires reading two values from the packed delta stream.

Source

fn new(position: u16, x: i32, y: i32) -> Self

Creates a new delta for the given position and coordinates. If the delta is not a point, the y value will always be zero.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§