#[non_exhaustive]#[repr(u8)]pub enum CoursePointType {
Show 53 variants
Generic = 0,
Summit = 1,
Valley = 2,
Water = 3,
Food = 4,
Danger = 5,
Left = 6,
Right = 7,
Straight = 8,
FirstAid = 9,
FourthCategory = 10,
ThirdCategory = 11,
SecondCategory = 12,
FirstCategory = 13,
HorsCategory = 14,
Sprint = 15,
LeftFork = 16,
RightFork = 17,
MiddleFork = 18,
SlightLeft = 19,
SharpLeft = 20,
SlightRight = 21,
SharpRight = 22,
UTurn = 23,
SegmentStart = 24,
SegmentEnd = 25,
Campsite = 27,
AidStation = 28,
RestArea = 29,
GeneralDistance = 30,
Service = 31,
EnergyGel = 32,
SportsDrink = 33,
MileMarker = 34,
Checkpoint = 35,
Shelter = 36,
MeetingSpot = 37,
Overlook = 38,
Toilet = 39,
Shower = 40,
Gear = 41,
SharpCurve = 42,
SteepIncline = 43,
Tunnel = 44,
Bridge = 45,
Obstacle = 46,
Crossing = 47,
Store = 48,
Transition = 49,
Navaid = 50,
Transport = 51,
Alert = 52,
Info = 53,
}
Expand description
Course point types
Names and numeric values manually copied from Profile.xlsx in FIT SDK
21.158.00. See
docs/point_types.md
for how these may appear on devices in practice. The Generic
variant
typically renders as a pin or a flag icon.
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.
Generic = 0
Summit = 1
Valley = 2
Water = 3
Food = 4
Danger = 5
Left = 6
Right = 7
Straight = 8
FirstAid = 9
FourthCategory = 10
ThirdCategory = 11
SecondCategory = 12
FirstCategory = 13
HorsCategory = 14
Sprint = 15
LeftFork = 16
RightFork = 17
MiddleFork = 18
SlightLeft = 19
SharpLeft = 20
SlightRight = 21
SharpRight = 22
UTurn = 23
SegmentStart = 24
SegmentEnd = 25
Campsite = 27
AidStation = 28
RestArea = 29
GeneralDistance = 30
Service = 31
EnergyGel = 32
SportsDrink = 33
MileMarker = 34
Checkpoint = 35
Shelter = 36
MeetingSpot = 37
Overlook = 38
Toilet = 39
Shower = 40
Gear = 41
SharpCurve = 42
SteepIncline = 43
Tunnel = 44
Bridge = 45
Obstacle = 46
Crossing = 47
Store = 48
Transition = 49
Transport = 51
Alert = 52
Info = 53
Trait Implementations§
Source§impl Clone for CoursePointType
impl Clone for CoursePointType
Source§fn clone(&self) -> CoursePointType
fn clone(&self) -> CoursePointType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CoursePointType
impl Debug for CoursePointType
Source§impl FromStr for CoursePointType
impl FromStr for CoursePointType
Source§impl PartialEq for CoursePointType
impl PartialEq for CoursePointType
Source§impl TryFrom<&str> for CoursePointType
impl TryFrom<&str> for CoursePointType
impl Copy for CoursePointType
impl StructuralPartialEq for CoursePointType
Auto Trait Implementations§
impl Freeze for CoursePointType
impl RefUnwindSafe for CoursePointType
impl Send for CoursePointType
impl Sync for CoursePointType
impl Unpin for CoursePointType
impl UnwindSafe for CoursePointType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more