Skip to main content

Frame

Trait Frame 

Source
pub trait Frame:
    Copy
    + Debug
    + PartialEq
    + Eq
    + 'static {
    const NAME: &'static str;
}
Expand description

A reference frame.

Implemented only by the tag types in this module. A frame is never instantiated; it exists to label a type parameter and then vanish.

The supertraits exist so that #[derive(Copy)] on the frame-tagged types does not demand them all over again: a derive on a struct holding PhantomData<fn(F) -> F> adds a spurious F: Copy bound, even though PhantomData is Copy unconditionally.

Required Associated Constants§

Source

const NAME: &'static str

Short name, for diagnostics.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Frame for Cirs

Source§

const NAME: &'static str = "CIRS"

Source§

impl Frame for Gcrf

Source§

const NAME: &'static str = "GCRF"

Source§

impl Frame for Itrf

Source§

const NAME: &'static str = "ITRF"

Source§

impl Frame for Pef

Source§

const NAME: &'static str = "PEF"

Source§

impl Frame for Teme

Source§

const NAME: &'static str = "TEME"

Source§

impl Frame for Tirs

Source§

const NAME: &'static str = "TIRS"