pub struct FuelPlanning { /* private fields */ }Implementations§
Source§impl FuelPlanning
impl FuelPlanning
pub fn new( aircraft: &Aircraft, policy: &FuelPolicy, taxi: Fuel, route: &Route, reserve: &Reserve, perf: &LegPerformance<'_>, ) -> Option<Self>
pub fn taxi(&self) -> &Fuel
pub fn trip(&self) -> &Fuel
pub fn alternate(&self) -> Option<&Fuel>
pub fn reserve(&self) -> &Fuel
pub fn total(&self) -> &Fuel
pub fn min(&self) -> &Fuel
pub fn extra(&self) -> Option<&Fuel>
pub fn on_ramp(&self) -> &Fuel
pub fn after_landing(&self) -> &Fuel
Trait Implementations§
Source§impl Clone for FuelPlanning
impl Clone for FuelPlanning
Source§fn clone(&self) -> FuelPlanning
fn clone(&self) -> FuelPlanning
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FuelPlanning
impl Debug for FuelPlanning
Source§impl<'de> Deserialize<'de> for FuelPlanning
impl<'de> Deserialize<'de> for FuelPlanning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FuelPlanning
impl PartialEq for FuelPlanning
Source§impl Serialize for FuelPlanning
impl Serialize for FuelPlanning
impl Copy for FuelPlanning
impl Eq for FuelPlanning
impl StructuralPartialEq for FuelPlanning
Auto Trait Implementations§
impl Freeze for FuelPlanning
impl RefUnwindSafe for FuelPlanning
impl Send for FuelPlanning
impl Sync for FuelPlanning
impl Unpin for FuelPlanning
impl UnsafeUnpin for FuelPlanning
impl UnwindSafe for FuelPlanning
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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