Skip to main content

AnnotationParameterValue

Struct AnnotationParameterValue 

Source
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

Source

pub const SERIALIZE_KIND: SerializeKind = xidl_xcdr::SerializeKind::Cdr

Source

pub fn new_boolean_value(value: bool) -> Self

Source

pub fn is_boolean_value(&self) -> bool

Source

pub fn new_byte_value(value: u8) -> Self

Source

pub fn is_byte_value(&self) -> bool

Source

pub fn new_int16_value(value: i16) -> Self

Source

pub fn is_int16_value(&self) -> bool

Source

pub fn new_uint_16_value(value: u16) -> Self

Source

pub fn is_uint_16_value(&self) -> bool

Source

pub fn new_int32_value(value: i32) -> Self

Source

pub fn is_int32_value(&self) -> bool

Source

pub fn new_uint32_value(value: u32) -> Self

Source

pub fn is_uint32_value(&self) -> bool

Source

pub fn new_int64_value(value: i64) -> Self

Source

pub fn is_int64_value(&self) -> bool

Source

pub fn new_uint64_value(value: u64) -> Self

Source

pub fn is_uint64_value(&self) -> bool

Source

pub fn new_float32_value(value: f64) -> Self

Source

pub fn is_float32_value(&self) -> bool

Source

pub fn new_float64_value(value: f64) -> Self

Source

pub fn is_float64_value(&self) -> bool

Source

pub fn new_float128_value(value: f64) -> Self

Source

pub fn is_float128_value(&self) -> bool

Source

pub fn new_char_value(value: char) -> Self

Source

pub fn is_char_value(&self) -> bool

Source

pub fn new_wchar_value(value: char) -> Self

Source

pub fn is_wchar_value(&self) -> bool

Source

pub fn new_enumerated_value(value: i32) -> Self

Source

pub fn is_enumerated_value(&self) -> bool

Source

pub fn new_string8_value(value: String) -> Self

Source

pub fn is_string8_value(&self) -> bool

Source

pub fn new_string16_value(value: String) -> Self

Source

pub fn is_string16_value(&self) -> bool

Source

pub fn new_extended_value(value: Box<ExtendedAnnotationParameterValue>) -> Self

Source

pub fn is_extended_value(&self) -> bool

Source

pub fn tag(&self) -> &u8

Trait Implementations§

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.