Trait PointInTime

Source
pub trait PointInTime:
    Debug
    + Copy
    + Eq {
    // Required methods
    fn pos(&self) -> Position;
    unsafe fn set_pos(&mut self, pos: Position);

    // Provided method
    fn record_pos(&self) -> Position { ... }
}

Required Methods§

Source

fn pos(&self) -> Position

Source

unsafe fn set_pos(&mut self, pos: Position)

Provided Methods§

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§