Skip to main content

TryBodyFixed

Trait TryBodyFixed 

Source
pub trait TryBodyFixed: ReferenceFrame {
    type Origin: CoordinateOrigin + Copy;

    // Required methods
    fn try_body_fixed(&self) -> Result<(), NonBodyFixedFrameError>;
    fn try_origin(&self) -> Result<Self::Origin, NonBodyFixedFrameError>;
}
Expand description

Fallible check for body-fixed frames (used by dynamic dispatch).

Required Associated Types§

Source

type Origin: CoordinateOrigin + Copy

The coordinate origin (central body) of the body-fixed frame.

Required Methods§

Source

fn try_body_fixed(&self) -> Result<(), NonBodyFixedFrameError>

Returns Ok(()) if the frame is body-fixed.

Source

fn try_origin(&self) -> Result<Self::Origin, NonBodyFixedFrameError>

Returns the coordinate origin (central body) of the body-fixed frame.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§