pub struct RosWStringSeq<const STRLEN: usize, const SEQLEN: usize>(/* private fields */);Expand description
Sequence of WString.
STRLEN represents the maximum number of characters excluding \0.
If STRLEN is 0, the string is unlimited.
SEQLEN represents the maximum number of elements in a sequence.
If SEQLEN is 0, the sequence is unlimited.
Implementations§
Source§impl<const STRLEN: usize, const SEQLEN: usize> RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> RosWStringSeq<STRLEN, SEQLEN>
pub fn new(size: usize) -> Option<Self>
pub fn null() -> Self
pub fn as_slice(&self) -> &[RosWString<STRLEN>]
pub fn as_mut_slice(&mut self) -> &mut [RosWString<STRLEN>]
pub fn iter(&self) -> Iter<'_, RosWString<STRLEN>>
pub fn iter_mut(&mut self) -> IterMut<'_, RosWString<STRLEN>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'de, const STRLEN: usize, const SEQLEN: usize> Deserialize<'de> for RosWStringSeq<STRLEN, SEQLEN>
impl<'de, const STRLEN: usize, const SEQLEN: usize> Deserialize<'de> for RosWStringSeq<STRLEN, SEQLEN>
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const STRLEN: usize, const SEQLEN: usize> RosFieldType for RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> RosFieldType for RosWStringSeq<STRLEN, SEQLEN>
Source§fn ros_field_type() -> FieldType
fn ros_field_type() -> FieldType
Returns the FieldType for this type when used as a field.
Source§fn referenced_types() -> Vec<IndividualTypeDescription>
fn referenced_types() -> Vec<IndividualTypeDescription>
Returns referenced type descriptions (empty for primitives, populated for nested types).
impl<const STRLEN: usize, const SEQLEN: usize> Send for RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> Sync for RosWStringSeq<STRLEN, SEQLEN>
Auto Trait Implementations§
impl<const STRLEN: usize, const SEQLEN: usize> Freeze for RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> RefUnwindSafe for RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> Unpin for RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> UnsafeUnpin for RosWStringSeq<STRLEN, SEQLEN>
impl<const STRLEN: usize, const SEQLEN: usize> UnwindSafe for RosWStringSeq<STRLEN, SEQLEN>
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