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§
Sourcetype Origin: CoordinateOrigin + Copy
type Origin: CoordinateOrigin + Copy
The coordinate origin (central body) of the body-fixed frame.
Required Methods§
Sourcefn try_body_fixed(&self) -> Result<(), NonBodyFixedFrameError>
fn try_body_fixed(&self) -> Result<(), NonBodyFixedFrameError>
Returns Ok(()) if the frame is body-fixed.
Sourcefn try_origin(&self) -> Result<Self::Origin, NonBodyFixedFrameError>
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".