#[repr(transparent)]pub struct GoalStatusArraySeq<const N: usize>(pub SequenceRaw<GoalStatusArray>);Expand description
Sequence of messages.
N is the maximum number of elements.
If N is 0, the size is unlimited.
Tuple Fields§
§0: SequenceRaw<GoalStatusArray>Implementations§
Source§impl<const N: usize> GoalStatusArraySeq<N>
impl<const N: usize> GoalStatusArraySeq<N>
Source§impl<const N: usize> GoalStatusArraySeq<N>
impl<const N: usize> GoalStatusArraySeq<N>
Sourcepub fn new(size: usize) -> Option<Self>where
GoalStatusArray: Default,
pub fn new(size: usize) -> Option<Self>where
GoalStatusArray: 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<GoalStatusArray>) -> Option<Self>
pub fn from_vec(vec: Vec<GoalStatusArray>) -> Option<Self>
Create a sequence from a Vec (takes ownership)
Sourcepub unsafe fn into_vec(self) -> Vec<GoalStatusArray>
pub unsafe fn into_vec(self) -> Vec<GoalStatusArray>
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<GoalStatusArray>>§
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 GoalStatusArraySeq<N>where
GoalStatusArray: Clone,
impl<const N: usize> Clone for GoalStatusArraySeq<N>where
GoalStatusArray: Clone,
Source§impl<const N: usize> Debug for GoalStatusArraySeq<N>
impl<const N: usize> Debug for GoalStatusArraySeq<N>
Source§impl<const N: usize> Default for GoalStatusArraySeq<N>
impl<const N: usize> Default for GoalStatusArraySeq<N>
Source§impl<const N: usize> Deref for GoalStatusArraySeq<N>
impl<const N: usize> Deref for GoalStatusArraySeq<N>
Source§type Target = SequenceRaw<GoalStatusArray>
type Target = SequenceRaw<GoalStatusArray>
Source§impl<const N: usize> DerefMut for GoalStatusArraySeq<N>
impl<const N: usize> DerefMut for GoalStatusArraySeq<N>
Source§impl<'de, const N: usize> Deserialize<'de> for GoalStatusArraySeq<N>where
GoalStatusArray: Deserialize<'de>,
impl<'de, const N: usize> Deserialize<'de> for GoalStatusArraySeq<N>where
GoalStatusArray: 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 GoalStatusArraySeq<N>where
GoalStatusArray: PartialEq,
impl<const N: usize> PartialEq for GoalStatusArraySeq<N>where
GoalStatusArray: PartialEq,
Source§impl<const N: usize> RosFieldType for GoalStatusArraySeq<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 GoalStatusArraySeq<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 GoalStatusArraySeq<N>where
GoalStatusArray: Serialize,
impl<const N: usize> Serialize for GoalStatusArraySeq<N>where
GoalStatusArray: Serialize,
Source§impl<const N: usize> TryClone for GoalStatusArraySeq<N>where
GoalStatusArray: Clone,
impl<const N: usize> TryClone for GoalStatusArraySeq<N>where
GoalStatusArray: Clone,
Source§impl<const N: usize> TypeDescription for GoalStatusArraySeq<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 GoalStatusArraySeq<N>
TypeDescription for sequence types delegates to the element type.
This enables proper type hash computation when XxxSeq