pub struct AnnotationParameterValue {Show 18 fields
pub _d: u8,
pub boolean_value: Option<bool>,
pub byte_value: Option<u8>,
pub int16_value: Option<i16>,
pub uint_16_value: Option<u16>,
pub int32_value: Option<i32>,
pub uint32_value: Option<u32>,
pub int64_value: Option<i64>,
pub uint64_value: Option<u64>,
pub float32_value: Option<f64>,
pub float64_value: Option<f64>,
pub float128_value: Option<f64>,
pub char_value: Option<char>,
pub wchar_value: Option<char>,
pub enumerated_value: Option<i32>,
pub string8_value: Option<String>,
pub string16_value: Option<String>,
pub extended_value: Option<Box<ExtendedAnnotationParameterValue>>,
}Fields§
§_d: u8§boolean_value: Option<bool>§byte_value: Option<u8>§int16_value: Option<i16>§uint_16_value: Option<u16>§int32_value: Option<i32>§uint32_value: Option<u32>§int64_value: Option<i64>§uint64_value: Option<u64>§float32_value: Option<f64>§float64_value: Option<f64>§float128_value: Option<f64>§char_value: Option<char>§wchar_value: Option<char>§enumerated_value: Option<i32>§string8_value: Option<String>§string16_value: Option<String>§extended_value: Option<Box<ExtendedAnnotationParameterValue>>Implementations§
Source§impl AnnotationParameterValue
impl AnnotationParameterValue
pub const SERIALIZE_KIND: SerializeKind = xidl_xcdr::SerializeKind::Cdr
pub fn new_boolean_value(value: bool) -> Self
pub fn is_boolean_value(&self) -> bool
pub fn new_byte_value(value: u8) -> Self
pub fn is_byte_value(&self) -> bool
pub fn new_int16_value(value: i16) -> Self
pub fn is_int16_value(&self) -> bool
pub fn new_uint_16_value(value: u16) -> Self
pub fn is_uint_16_value(&self) -> bool
pub fn new_int32_value(value: i32) -> Self
pub fn is_int32_value(&self) -> bool
pub fn new_uint32_value(value: u32) -> Self
pub fn is_uint32_value(&self) -> bool
pub fn new_int64_value(value: i64) -> Self
pub fn is_int64_value(&self) -> bool
pub fn new_uint64_value(value: u64) -> Self
pub fn is_uint64_value(&self) -> bool
pub fn new_float32_value(value: f64) -> Self
pub fn is_float32_value(&self) -> bool
pub fn new_float64_value(value: f64) -> Self
pub fn is_float64_value(&self) -> bool
pub fn new_float128_value(value: f64) -> Self
pub fn is_float128_value(&self) -> bool
pub fn new_char_value(value: char) -> Self
pub fn is_char_value(&self) -> bool
pub fn new_wchar_value(value: char) -> Self
pub fn is_wchar_value(&self) -> bool
pub fn new_enumerated_value(value: i32) -> Self
pub fn is_enumerated_value(&self) -> bool
pub fn new_string8_value(value: String) -> Self
pub fn is_string8_value(&self) -> bool
pub fn new_string16_value(value: String) -> Self
pub fn is_string16_value(&self) -> bool
pub fn new_extended_value(value: Box<ExtendedAnnotationParameterValue>) -> Self
pub fn is_extended_value(&self) -> bool
pub fn tag(&self) -> &u8
Trait Implementations§
Source§impl XcdrDeserialize for AnnotationParameterValue
impl XcdrDeserialize for AnnotationParameterValue
fn deserialize<D: XcdrDeserializer + ?Sized>( deserializer: &mut D, ) -> XcdrResult<Self>
Source§impl XcdrSerialize for AnnotationParameterValue
impl XcdrSerialize for AnnotationParameterValue
fn serialize_kind(&self) -> SerializeKind
fn serialize_with<S: XcdrSerializer + ?Sized>( &self, serializer: &mut S, ) -> XcdrResult<()>
fn serialize(&self, buf: &mut [u8]) -> Result<usize, XcdrError>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for AnnotationParameterValue
impl RefUnwindSafe for AnnotationParameterValue
impl Send for AnnotationParameterValue
impl Sync for AnnotationParameterValue
impl Unpin for AnnotationParameterValue
impl UnsafeUnpin for AnnotationParameterValue
impl UnwindSafe for AnnotationParameterValue
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