#[repr(i32)]pub enum SensorModality {
Unspecified = 0,
Eo = 1,
Ir = 2,
Mwir = 3,
Lwir = 4,
Radar = 5,
Lidar = 6,
Sar = 7,
Multispectral = 8,
Acoustic = 9,
}Expand description
Sensor modality / imaging type
Variants§
Unspecified = 0
Eo = 1
Electro-Optical (visible light)
Ir = 2
Infrared / Thermal (general)
Mwir = 3
Mid-Wave Infrared (3-5 micron)
Lwir = 4
Long-Wave Infrared (8-14 micron)
Radar = 5
Radar (active RF)
Lidar = 6
LiDAR (laser scanning)
Sar = 7
Synthetic Aperture Radar
Multispectral = 8
Multi-spectral / Hyperspectral
Acoustic = 9
Acoustic / Sonar
Implementations§
Source§impl SensorModality
impl SensorModality
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SensorModality
impl Clone for SensorModality
Source§fn clone(&self) -> SensorModality
fn clone(&self) -> SensorModality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SensorModality
impl Debug for SensorModality
Source§impl Default for SensorModality
impl Default for SensorModality
Source§fn default() -> SensorModality
fn default() -> SensorModality
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SensorModality
impl<'de> Deserialize<'de> for SensorModality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SensorModality> for i32
impl From<SensorModality> for i32
Source§fn from(value: SensorModality) -> i32
fn from(value: SensorModality) -> i32
Converts to this type from the input type.
Source§impl Hash for SensorModality
impl Hash for SensorModality
Source§impl Ord for SensorModality
impl Ord for SensorModality
Source§fn cmp(&self, other: &SensorModality) -> Ordering
fn cmp(&self, other: &SensorModality) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SensorModality
impl PartialEq for SensorModality
Source§fn eq(&self, other: &SensorModality) -> bool
fn eq(&self, other: &SensorModality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SensorModality
impl PartialOrd for SensorModality
Source§impl Serialize for SensorModality
impl Serialize for SensorModality
Source§impl TryFrom<i32> for SensorModality
impl TryFrom<i32> for SensorModality
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SensorModality, UnknownEnumValue>
fn try_from(value: i32) -> Result<SensorModality, UnknownEnumValue>
Performs the conversion.
impl Copy for SensorModality
impl Eq for SensorModality
impl StructuralPartialEq for SensorModality
Auto Trait Implementations§
impl Freeze for SensorModality
impl RefUnwindSafe for SensorModality
impl Send for SensorModality
impl Sync for SensorModality
impl Unpin for SensorModality
impl UnsafeUnpin for SensorModality
impl UnwindSafe for SensorModality
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