#[repr(transparent)]pub struct Int8MultiArraySeq<const N: usize>(pub SequenceRaw<Int8MultiArray>);Expand description
Sequence of messages.
N is the maximum number of elements.
If N is 0, the size is unlimited.
Tuple Fields§
§0: SequenceRaw<Int8MultiArray>Implementations§
Source§impl<const N: usize> Int8MultiArraySeq<N>
impl<const N: usize> Int8MultiArraySeq<N>
Source§impl<const N: usize> Int8MultiArraySeq<N>
impl<const N: usize> Int8MultiArraySeq<N>
Sourcepub fn new(size: usize) -> Option<Self>where
Int8MultiArray: Default,
pub fn new(size: usize) -> Option<Self>where
Int8MultiArray: Default,
Create a sequence with the given size, initialized with default values.
N represents the maximum number of elements.
If N is 0, the sequence is unlimited.
Sourcepub fn from_vec(vec: Vec<Int8MultiArray>) -> Option<Self>
pub fn from_vec(vec: Vec<Int8MultiArray>) -> Option<Self>
Create a sequence from a Vec (takes ownership)
Sourcepub unsafe fn into_vec(self) -> Vec<Int8MultiArray>
pub unsafe fn into_vec(self) -> Vec<Int8MultiArray>
Convert the sequence to a Vec (takes ownership)
§Safety
Only call this on sequences created with new() or from_vec().
Methods from Deref<Target = SequenceRaw<Int8MultiArray>>§
pub fn iter(&self) -> Iter<'_, T>
Sourcepub fn as_slice_mut(&mut self) -> &mut [T]
👎Deprecated: use as_mut_slice instead
pub fn as_slice_mut(&mut self) -> &mut [T]
use as_mut_slice instead
Get a mutable slice of the sequence data
Sourcepub fn as_mut_slice(&mut self) -> &mut [T]
pub fn as_mut_slice(&mut self) -> &mut [T]
Get a mutable slice of the sequence data
pub fn iter_mut(&mut self) -> IterMut<'_, T>
Trait Implementations§
Source§impl<const N: usize> Clone for Int8MultiArraySeq<N>where
Int8MultiArray: Clone,
impl<const N: usize> Clone for Int8MultiArraySeq<N>where
Int8MultiArray: Clone,
Source§impl<const N: usize> Debug for Int8MultiArraySeq<N>
impl<const N: usize> Debug for Int8MultiArraySeq<N>
Source§impl<const N: usize> Default for Int8MultiArraySeq<N>
impl<const N: usize> Default for Int8MultiArraySeq<N>
Source§impl<const N: usize> Deref for Int8MultiArraySeq<N>
impl<const N: usize> Deref for Int8MultiArraySeq<N>
Source§type Target = SequenceRaw<Int8MultiArray>
type Target = SequenceRaw<Int8MultiArray>
Source§impl<const N: usize> DerefMut for Int8MultiArraySeq<N>
impl<const N: usize> DerefMut for Int8MultiArraySeq<N>
Source§impl<'de, const N: usize> Deserialize<'de> for Int8MultiArraySeq<N>where
Int8MultiArray: Deserialize<'de>,
impl<'de, const N: usize> Deserialize<'de> for Int8MultiArraySeq<N>where
Int8MultiArray: Deserialize<'de>,
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>,
Source§impl<const N: usize> PartialEq for Int8MultiArraySeq<N>where
Int8MultiArray: PartialEq,
impl<const N: usize> PartialEq for Int8MultiArraySeq<N>where
Int8MultiArray: PartialEq,
Source§impl<const N: usize> RosFieldType for Int8MultiArraySeq<N>
RosFieldType for sequence types - enables using XxxSeq as fields in other messages.
N=0 means unbounded sequence, N>0 means bounded sequence with capacity N.
impl<const N: usize> RosFieldType for Int8MultiArraySeq<N>
RosFieldType for sequence types - enables using XxxSeq
Source§fn ros_field_type() -> FieldType
fn ros_field_type() -> FieldType
Source§fn referenced_types() -> Vec<IndividualTypeDescription>
fn referenced_types() -> Vec<IndividualTypeDescription>
Source§impl<const N: usize> Serialize for Int8MultiArraySeq<N>where
Int8MultiArray: Serialize,
impl<const N: usize> Serialize for Int8MultiArraySeq<N>where
Int8MultiArray: Serialize,
Source§impl<const N: usize> TryClone for Int8MultiArraySeq<N>where
Int8MultiArray: Clone,
impl<const N: usize> TryClone for Int8MultiArraySeq<N>where
Int8MultiArray: Clone,
Source§impl<const N: usize> TypeDescription for Int8MultiArraySeq<N>
TypeDescription for sequence types delegates to the element type.
This enables proper type hash computation when XxxSeq is used in fields.
impl<const N: usize> TypeDescription for Int8MultiArraySeq<N>
TypeDescription for sequence types delegates to the element type.
This enables proper type hash computation when XxxSeq