pub struct TrajectoryRequestBuilder { /* private fields */ }Expand description
Builder for TrajectoryRequest
Implementations§
Source§impl TrajectoryRequestBuilder
impl TrajectoryRequestBuilder
pub fn new() -> Self
pub fn bc_value(self, value: f64) -> Self
pub fn bc_type(self, value: &str) -> Self
pub fn bullet_mass(self, value: f64) -> Self
pub fn muzzle_velocity(self, value: f64) -> Self
pub fn target_distance(self, value: f64) -> Self
pub fn zero_range(self, value: f64) -> Self
pub fn wind_speed(self, value: f64) -> Self
pub fn wind_angle(self, value: f64) -> Self
pub fn temperature(self, value: f64) -> Self
pub fn pressure(self, value: f64) -> Self
pub fn humidity(self, value: f64) -> Self
pub fn altitude(self, value: f64) -> Self
pub fn latitude(self, value: f64) -> Self
pub fn shooting_angle(self, value: f64) -> Self
pub fn twist_rate(self, value: f64) -> Self
pub fn bullet_diameter(self, value: f64) -> Self
pub fn bullet_length(self, value: f64) -> Self
Trait Implementations§
Source§impl Default for TrajectoryRequestBuilder
impl Default for TrajectoryRequestBuilder
Source§fn default() -> TrajectoryRequestBuilder
fn default() -> TrajectoryRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TrajectoryRequestBuilder
impl RefUnwindSafe for TrajectoryRequestBuilder
impl Send for TrajectoryRequestBuilder
impl Sync for TrajectoryRequestBuilder
impl Unpin for TrajectoryRequestBuilder
impl UnwindSafe for TrajectoryRequestBuilder
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.