pub struct ByteSeq<const N: usize>(/* private fields */);Expand description
A sequence of elements.
N represents the maximum number of elements.
If N is 0, the sequence is unlimited.
Implementations§
Source§impl<const N: usize> ByteSeq<N>
impl<const N: usize> ByteSeq<N>
pub fn new(size: usize) -> Option<Self>
pub fn null() -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn iter(&self) -> Iter<'_, u8>
pub fn iter_mut(&mut self) -> IterMut<'_, u8>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'de, const N: usize> Deserialize<'de> for ByteSeq<N>
impl<'de, const N: usize> Deserialize<'de> for ByteSeq<N>
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 ByteSeq<N>
impl<const N: usize> RosFieldType for ByteSeq<N>
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 N: usize> Send for ByteSeq<N>
impl<const N: usize> Sync for ByteSeq<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ByteSeq<N>
impl<const N: usize> RefUnwindSafe for ByteSeq<N>
impl<const N: usize> Unpin for ByteSeq<N>
impl<const N: usize> UnsafeUnpin for ByteSeq<N>
impl<const N: usize> UnwindSafe for ByteSeq<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