#[non_exhaustive]pub enum AidType {
ReferencePoint,
Racon,
FixedStructureOffshore,
Light {
sectored: bool,
},
LeadingLight {
rear: bool,
},
Beacon(Mark),
Floating(Mark),
LightVessel,
Reserved(u8),
}Expand description
Aid-to-navigation type.
#[non_exhaustive]; match with a wildcard arm.
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.
ReferencePoint
Reference point, 1.
Racon
RACON, 2.
FixedStructureOffshore
Fixed offshore structure (platform, wind farm), 3.
Light
Light, with or without sectors, 5 and 6.
LeadingLight
Leading light, front or rear, 7 and 8.
Beacon(Mark)
Fixed beacon, 9..=19.
Floating(Mark)
Floating mark (buoy), 20..=30.
LightVessel
Light vessel, LANBY or rig, 31.
Reserved(u8)
Reserved code, kept as received.
Implementations§
Trait Implementations§
impl Copy for AidType
impl Eq for AidType
impl StructuralPartialEq for AidType
Auto Trait Implementations§
impl Freeze for AidType
impl RefUnwindSafe for AidType
impl Send for AidType
impl Sync for AidType
impl Unpin for AidType
impl UnsafeUnpin for AidType
impl UnwindSafe for AidType
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