#[repr(transparent)]pub struct BoolSeq<const N: usize>(pub SequenceRaw<Bool>);Expand description
Sequence of messages.
N is the maximum number of elements.
If N is 0, the size is unlimited.
Tuple Fields§
§0: SequenceRaw<Bool>Implementations§
Methods from Deref<Target = SequenceRaw<Bool>>§
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<'de, const N: usize> Deserialize<'de> for BoolSeq<N>where
Bool: Deserialize<'de>,
impl<'de, const N: usize> Deserialize<'de> for BoolSeq<N>where
Bool: 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> RosFieldType for BoolSeq<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 BoolSeq<N>
RosFieldType for sequence types - enables using XxxSeq
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).
Source§impl<const N: usize> TypeDescription for BoolSeq<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 BoolSeq<N>
TypeDescription for sequence types delegates to the element type.
This enables proper type hash computation when XxxSeq
Source§fn type_description() -> TypeDescriptionMsg
fn type_description() -> TypeDescriptionMsg
Get the type description for this type Read more
Source§fn message_type_name() -> MessageTypeName
fn message_type_name() -> MessageTypeName
Get the message type name information Read more
impl<const N: usize> Send for BoolSeq<N>
impl<const N: usize> Sync for BoolSeq<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for BoolSeq<N>
impl<const N: usize> RefUnwindSafe for BoolSeq<N>
impl<const N: usize> Unpin for BoolSeq<N>
impl<const N: usize> UnsafeUnpin for BoolSeq<N>
impl<const N: usize> UnwindSafe for BoolSeq<N>
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