Struct Bullseye

pub struct Bullseye {
    pub cot: CursorOnTarget,
    /* private fields */
}
Expand description

Bullseye object

  • uid - Unique identifier
  • callsign - Callsign
  • point - Point
  • title - Title
  • edge_to_center - Edge to center
  • mils - Mils
  • has_range_rings - Has range rings
  • ring_dist - Ring distance
  • ring_num - Ring number
  • range_ring_visible - Range ring visible
  • distance - Distance
  • bullseye_uid - Bullseye unique identifier
  • bearing_ref - Bearing reference

Fields§

§cot: CursorOnTarget

Implementations§

§

impl Bullseye

pub fn new( cot: CursorOnTarget, callsign: String, title: String, edge_to_center: bool, mils: bool, has_range_rings: bool, ring_dist: f64, ring_num: i32, range_ring_visible: bool, distance: f64, bullseye_uid: String, bearing_ref: String, ) -> Bullseye

pub fn get_xml(&mut self) -> String

pub fn get_xml_bytes(&mut self) -> Vec<u8>

Trait Implementations§

§

impl Debug for Bullseye

§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
§

impl Sendable for Bullseye

§

fn update_xml(&mut self)

§

fn modify_field(&mut self, field: &str, value: &str)

§

fn get_cot(&self) -> CursorOnTarget

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.