Struct proj_sys::PROJ_UNIT_INFO
source · #[repr(C)]pub struct PROJ_UNIT_INFO {
pub auth_name: *mut c_char,
pub code: *mut c_char,
pub name: *mut c_char,
pub category: *mut c_char,
pub conv_factor: f64,
pub proj_short_name: *mut c_char,
pub deprecated: c_int,
}
Expand description
\brief Structure given description of a unit.
This structure may grow over time, and should not be directly allocated by client code. @since 7.1
Fields§
§auth_name: *mut c_char
Authority name.
code: *mut c_char
Object code.
name: *mut c_char
Object name. For example “metre”, “US survey foot”, etc.
category: *mut c_char
Category of the unit: one of “linear”, “linear_per_time”, “angular”, “angular_per_time”, “scale”, “scale_per_time” or “time”
conv_factor: f64
Conversion factor to apply to transform from that unit to the corresponding SI unit (metre for “linear”, radian for “angular”, etc.). It might be 0 in some cases to indicate no known conversion factor.
proj_short_name: *mut c_char
PROJ short name, like “m”, “ft”, “us-ft”, etc… Might be NULL
deprecated: c_int
Whether the object is deprecated
Trait Implementations§
source§impl Clone for PROJ_UNIT_INFO
impl Clone for PROJ_UNIT_INFO
source§fn clone(&self) -> PROJ_UNIT_INFO
fn clone(&self) -> PROJ_UNIT_INFO
Returns a copy 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 PROJ_UNIT_INFO
impl Debug for PROJ_UNIT_INFO
impl Copy for PROJ_UNIT_INFO
Auto Trait Implementations§
impl RefUnwindSafe for PROJ_UNIT_INFO
impl !Send for PROJ_UNIT_INFO
impl !Sync for PROJ_UNIT_INFO
impl Unpin for PROJ_UNIT_INFO
impl UnwindSafe for PROJ_UNIT_INFO
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