pub struct ParameterType {
pub name: NameId,
pub qualified_name: NameId,
pub space_system: SpaceSystemId,
pub units: Vec<NameId>,
pub kind: TypeKind,
pub encoding: DataEncoding,
}Expand description
A <xtce:*ParameterType> definition.
Fields§
§name: NameIdType name as written, e.g. MSN__PARAM_Type.
qualified_name: NameIdFully qualified name, e.g. /Root/MSN__PARAM_Type.
space_system: SpaceSystemIdThe space system that owns this definition.
units: Vec<NameId>Engineering units, if declared. XTCE permits compound units, hence a list.
kind: TypeKindWhat kind of value this type produces.
encoding: DataEncodingHow the value is laid out in the packet.
Implementations§
Source§impl ParameterType
impl ParameterType
Sourcepub fn fixed_size_in_bits(&self) -> Option<u32>
pub fn fixed_size_in_bits(&self) -> Option<u32>
Number of bits this type occupies, when that is fixed at load time.
None means the width depends on packet content — a dynamically sized binary or
string field — and can only be known while decoding.
Trait Implementations§
Source§impl Clone for ParameterType
impl Clone for ParameterType
Auto Trait Implementations§
impl Forget for ParameterType
impl Freeze for ParameterType
impl Move for ParameterType
impl RefUnwindSafe for ParameterType
impl Send for ParameterType
impl Sync for ParameterType
impl Unpin for ParameterType
impl UnsafeUnpin for ParameterType
impl UnwindSafe for ParameterType
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