#[non_exhaustive]pub enum FrameRole {
Primary,
AltInertial,
AltPfix,
CoreBody,
CompositeBody,
Structure,
VehiclePoint,
Lvlh,
Ned,
Custom(Box<str>),
}Expand description
Orthogonal role within a FrameClass — owned form carried by
FrameUid.
Borrowed sibling: FrameRoleStatic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Primary
AltInertial
AltPfix
CoreBody
CompositeBody
Structure
VehiclePoint
Lvlh
Ned
See FrameRoleStatic::Ned.
Custom(Box<str>)
Caller-named role, owned.
Implementations§
Source§impl FrameRole
impl FrameRole
Sourcepub fn matches_static(&self, role: FrameRoleStatic) -> bool
pub fn matches_static(&self, role: FrameRoleStatic) -> bool
true iff this owned role equals the borrowed role
variant-for-variant (string contents compared for Custom).
Zero-allocation sibling of FrameRole::from(role) == *self.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FrameRole
impl<'de> Deserialize<'de> for FrameRole
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FrameRole
Source§impl From<FrameRoleStatic> for FrameRole
impl From<FrameRoleStatic> for FrameRole
Source§fn from(r: FrameRoleStatic) -> FrameRole
fn from(r: FrameRoleStatic) -> FrameRole
Converts to this type from the input type.
Source§impl Serialize for FrameRole
impl Serialize for FrameRole
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FrameRole
Auto Trait Implementations§
impl Freeze for FrameRole
impl RefUnwindSafe for FrameRole
impl Send for FrameRole
impl Sync for FrameRole
impl Unpin for FrameRole
impl UnsafeUnpin for FrameRole
impl UnwindSafe for FrameRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more