Struct proj_sys::PROJ_UNIT_INFO [−][src]
#[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
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
Mutably borrows from an owned value. Read more