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_charAuthority name.
code: *mut c_charObject code.
name: *mut c_charObject name. For example “metre”, “US survey foot”, etc.
category: *mut c_charCategory of the unit: one of “linear”, “linear_per_time”, “angular”, “angular_per_time”, “scale”, “scale_per_time” or “time”
conv_factor: f64Conversion 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_charPROJ short name, like “m”, “ft”, “us-ft”, etc… Might be NULL
deprecated: c_intWhether the object is deprecated
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PROJ_UNIT_INFOimpl !Send for PROJ_UNIT_INFOimpl !Sync for PROJ_UNIT_INFOimpl Unpin for PROJ_UNIT_INFOimpl UnwindSafe for PROJ_UNIT_INFOBlanket Implementations
Mutably borrows from an owned value. Read more