[−][src]Struct f1_api::packet::session::MarshalZone
A marshal zone around the track and its current flags.
A race track is divided into many marshal zones. In each zone, flags can be waved to inform drivers about hazards on track, faster cars approaching from behind, and other important status updates. Each zone is represented by a struct containing the fraction of the race track's length where the zone starts, and any flag that is currently being shown there.
Methods
impl MarshalZone[src]
impl MarshalZone[src]
pub fn start(&self) -> f32[src]
Returns the start point of the marshal zone as a fraction of the race track's total length.
pub fn flag(&self) -> Flag[src]
Returns the flag that is currently being displayed in the marshal zone.
Trait Implementations
impl Clone for MarshalZone[src]
fn clone(&self) -> MarshalZone[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for MarshalZone[src]
impl Debug for MarshalZone[src]
impl Default for MarshalZone[src]
fn default() -> MarshalZone[src]
impl PartialEq<MarshalZone> for MarshalZone[src]
fn eq(&self, other: &MarshalZone) -> bool[src]
fn ne(&self, other: &MarshalZone) -> bool[src]
impl PartialOrd<MarshalZone> for MarshalZone[src]
fn partial_cmp(&self, other: &MarshalZone) -> Option<Ordering>[src]
fn lt(&self, other: &MarshalZone) -> bool[src]
fn le(&self, other: &MarshalZone) -> bool[src]
fn gt(&self, other: &MarshalZone) -> bool[src]
fn ge(&self, other: &MarshalZone) -> bool[src]
impl StructuralPartialEq for MarshalZone[src]
Auto Trait Implementations
impl RefUnwindSafe for MarshalZone
impl Send for MarshalZone
impl Sync for MarshalZone
impl Unpin for MarshalZone
impl UnwindSafe for MarshalZone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,