#[repr(u8)]pub enum MeasurementType {
Range = 0,
Doppler = 1,
Azimuth = 2,
Elevation = 3,
ReceiveFrequency = 4,
TransmitFrequency = 5,
TransmitFrequencyRate = 9,
X = 6,
Y = 7,
Z = 8,
}Variants§
Range = 0
Doppler = 1
Azimuth = 2
Elevation = 3
ReceiveFrequency = 4
TransmitFrequency = 5
TransmitFrequencyRate = 9
X = 6
Y = 7
Z = 8
Implementations§
Source§impl MeasurementType
impl MeasurementType
Sourcepub fn to_field(&self) -> Field
pub fn to_field(&self) -> Field
Returns the fields for this kind of measurement. The metadata includes a unit field with the unit.
Column is nullable in case there is no such measurement at a given epoch.
Sourcepub fn compute_one_way(self, aer: AzElRange, noise: f64) -> Result<f64, ODError>
pub fn compute_one_way(self, aer: AzElRange, noise: f64) -> Result<f64, ODError>
Computes the one way measurement from an AER object and the noise of this measurement type, returned in the units of this measurement type.
Sourcepub fn compute_two_way(
self,
aer_t0: AzElRange,
aer_t1: AzElRange,
noise: f64,
) -> Result<f64, ODError>
pub fn compute_two_way( self, aer_t0: AzElRange, aer_t1: AzElRange, noise: f64, ) -> Result<f64, ODError>
Computes the two way measurement from two AER values and the noise of this measurement type, returned in the units of this measurement type. Two way is modeled by averaging the measurement in between both times, and adding the noise divided by sqrt(2).
Sourcepub fn ccsds_tdm_name(&self) -> &str
pub fn ccsds_tdm_name(&self) -> &str
Returns the CCSDS TDM name for this measurement type.
Trait Implementations§
Source§impl Clone for MeasurementType
impl Clone for MeasurementType
Source§fn clone(&self) -> MeasurementType
fn clone(&self) -> MeasurementType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeasurementType
impl Debug for MeasurementType
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for MeasurementType
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for MeasurementType
Source§fn decode_value<R: Reader<'__der_lifetime>>(
reader: &mut R,
header: Header,
) -> Result<Self>
fn decode_value<R: Reader<'__der_lifetime>>( reader: &mut R, header: Header, ) -> Result<Self>
Reader].Source§impl<'de> Deserialize<'de> for MeasurementType
impl<'de> Deserialize<'de> for MeasurementType
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>,
Source§impl EncodeValue for MeasurementType
impl EncodeValue for MeasurementType
Source§impl<'a, 'py> FromPyObject<'a, 'py> for MeasurementTypewhere
Self: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for MeasurementTypewhere
Self: Clone,
Source§impl FromStr for MeasurementType
impl FromStr for MeasurementType
Source§impl Hash for MeasurementType
impl Hash for MeasurementType
Source§impl<'py> IntoPyObject<'py> for MeasurementType
impl<'py> IntoPyObject<'py> for MeasurementType
Source§type Target = MeasurementType
type Target = MeasurementType
Source§type Output = Bound<'py, <MeasurementType as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <MeasurementType as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
Source§impl PartialEq for MeasurementType
impl PartialEq for MeasurementType
Source§fn eq(&self, other: &MeasurementType) -> bool
fn eq(&self, other: &MeasurementType) -> bool
self and other values to be equal, and is used by ==.Source§impl PyClass for MeasurementType
impl PyClass for MeasurementType
Source§impl PyClassImpl for MeasurementType
impl PyClassImpl for MeasurementType
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = c"\x00"
const RAW_DOC: &'static CStr = c"\x00"
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<MeasurementType as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<MeasurementType>
type Layout = <<MeasurementType as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<MeasurementType>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
type Inventory = Pyo3MethodsInventoryForMeasurementType
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyTypeInfo for MeasurementType
impl PyTypeInfo for MeasurementType
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.Source§impl Serialize for MeasurementType
impl Serialize for MeasurementType
Source§impl TryFrom<u8> for MeasurementType
impl TryFrom<u8> for MeasurementType
impl Copy for MeasurementType
impl Eq for MeasurementType
impl StructuralPartialEq for MeasurementType
Auto Trait Implementations§
impl Freeze for MeasurementType
impl RefUnwindSafe for MeasurementType
impl Send for MeasurementType
impl Sync for MeasurementType
impl Unpin for MeasurementType
impl UnsafeUnpin for MeasurementType
impl UnwindSafe for MeasurementType
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
§impl<'a, T> Choice<'a> for Twhere
T: Decode<'a> + FixedTag,
impl<'a, T> Choice<'a> for Twhere
T: Decode<'a> + FixedTag,
§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Tag] decodable as a variant of this CHOICE?Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided [Writer].
§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
§fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FromDhall for Twhere
T: DeserializeOwned,
impl<T> FromDhall for Twhere
T: DeserializeOwned,
fn from_dhall(v: &Value) -> Result<T, Error>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self into a Python object. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
isinstance and issubclass function. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.