Skip to main content

AttrKey

Enum AttrKey 

Source
pub enum AttrKey {
Show 39 variants Name, Abstract, ShortDescription, ParameterRef, ContainerRef, ParameterTypeRef, ArgumentTypeRef, ArgumentRef, ArgumentName, ArgumentValue, MetaCommandRef, BinaryValue, ArrayTypeRef, TypeRef, SizeInBits, Encoding, ByteOrder, Value, Label, MaxValue, ComparisonOperator, UseCalibratedValue, Slope, Intercept, Order, Extrapolate, Raw, Calibrated, Coefficient, Exponent, Offset, Scale, Units, SizeInBitsOfSizeTag, InitialValue, ReferenceLocation, ZeroStringValue, OneStringValue, Other,
}
Expand description

XTCE attribute names that carry meaning for telemetry decoding.

Variants§

§

Name

The XML symbol name.

§

Abstract

The XML symbol abstract.

§

ShortDescription

The XML symbol shortDescription.

§

ParameterRef

The XML symbol parameterRef.

§

ContainerRef

The XML symbol containerRef.

§

ParameterTypeRef

The XML symbol parameterTypeRef.

§

ArgumentTypeRef

The XML symbol argumentTypeRef.

§

ArgumentRef

The XML symbol argumentRef.

§

ArgumentName

The XML symbol argumentName.

§

ArgumentValue

The XML symbol argumentValue.

§

MetaCommandRef

The XML symbol metaCommandRef.

§

BinaryValue

The XML symbol binaryValue.

§

ArrayTypeRef

The XML symbol arrayTypeRef.

§

TypeRef

The XML symbol typeRef.

§

SizeInBits

The XML symbol sizeInBits.

§

Encoding

The XML symbol encoding.

§

ByteOrder

The XML symbol byteOrder.

§

Value

The XML symbol value.

§

Label

The XML symbol label.

§

MaxValue

The XML symbol maxValue.

§

ComparisonOperator

The XML symbol comparisonOperator.

§

UseCalibratedValue

The XML symbol useCalibratedValue.

§

Slope

The XML symbol slope.

§

Intercept

The XML symbol intercept.

§

Order

The XML symbol order.

§

Extrapolate

The XML symbol extrapolate.

§

Raw

The XML symbol raw.

§

Calibrated

The XML symbol calibrated.

§

Coefficient

The XML symbol coefficient.

§

Exponent

The XML symbol exponent.

§

Offset

The XML symbol offset.

§

Scale

The XML symbol scale.

§

Units

The XML symbol units.

§

SizeInBitsOfSizeTag

The XML symbol sizeInBitsOfSizeTag.

§

InitialValue

The XML symbol initialValue.

§

ReferenceLocation

The XML symbol referenceLocation.

§

ZeroStringValue

The XML symbol zeroStringValue.

§

OneStringValue

The XML symbol oneStringValue.

§

Other

Any symbol outside the vocabulary this crate understands.

Implementations§

Source§

impl AttrKey

Source

pub const ALL: &'static [AttrKey]

Every named variant, in declaration order.

Source

pub const fn text(self) -> &'static str

The XML spelling of this symbol; "" for Self::Other.

Source

pub fn from_text(text: &str) -> Self

Recognises a local name, returning Self::Other for anything outside the vocabulary.

Trait Implementations§

Source§

impl Clone for AttrKey

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AttrKey

Source§

impl Debug for AttrKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for AttrKey

Source§

impl Hash for AttrKey

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AttrKey

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AttrKey

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.