Skip to main content

Trigger_RequestSeq

Struct Trigger_RequestSeq 

Source
#[repr(transparent)]
pub struct Trigger_RequestSeq<const N: usize>(pub SequenceRaw<Trigger_Request>);
Expand description

Sequence of messages. N is the maximum number of elements. If N is 0, the size is unlimited.

Tuple Fields§

§0: SequenceRaw<Trigger_Request>

Implementations§

Source§

impl<const N: usize> Trigger_RequestSeq<N>

Source

pub const fn null() -> Self

Create a null/empty sequence

Source§

impl<const N: usize> Trigger_RequestSeq<N>

Source

pub fn new(size: usize) -> Option<Self>

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.

Source

pub fn from_vec(vec: Vec<Trigger_Request>) -> Option<Self>

Create a sequence from a Vec (takes ownership)

Source

pub unsafe fn into_vec(self) -> Vec<Trigger_Request>

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<Trigger_Request>>§

Source

pub fn is_empty(&self) -> bool

Check if the sequence is empty

Source

pub fn len(&self) -> usize

Get the length of the sequence

Source

pub fn as_slice(&self) -> &[T]

Get a slice of the sequence data

Source

pub fn iter(&self) -> Iter<'_, T>

Source

pub fn as_slice_mut(&mut self) -> &mut [T]

👎Deprecated:

use as_mut_slice instead

Get a mutable slice of the sequence data

Source

pub fn as_mut_slice(&mut self) -> &mut [T]

Get a mutable slice of the sequence data

Source

pub fn iter_mut(&mut self) -> IterMut<'_, T>

Trait Implementations§

Source§

impl<const N: usize> Clone for Trigger_RequestSeq<N>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const N: usize> Debug for Trigger_RequestSeq<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const N: usize> Default for Trigger_RequestSeq<N>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<const N: usize> Deref for Trigger_RequestSeq<N>

Source§

type Target = SequenceRaw<Trigger_Request>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<const N: usize> DerefMut for Trigger_RequestSeq<N>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'de, const N: usize> Deserialize<'de> for Trigger_RequestSeq<N>

Source§

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> PartialEq for Trigger_RequestSeq<N>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: usize> RosFieldType for Trigger_RequestSeq<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.

Source§

fn ros_field_type() -> FieldType

Returns the FieldType for this type when used as a field.
Source§

fn referenced_types() -> Vec<IndividualTypeDescription>

Returns referenced type descriptions (empty for primitives, populated for nested types).
Source§

impl<const N: usize> Serialize for Trigger_RequestSeq<N>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<const N: usize> TryClone for Trigger_RequestSeq<N>

Source§

fn try_clone(&self) -> Option<Self>

Returns Some(Self) if clone succeeds else None
Source§

impl<const N: usize> TypeDescription for Trigger_RequestSeq<N>

TypeDescription for sequence types delegates to the element type. This enables proper type hash computation when XxxSeq is used in fields.

Source§

fn type_description() -> TypeDescriptionMsg

Get the type description for this type Read more
Source§

fn message_type_name() -> MessageTypeName

Get the message type name information Read more
Source§

fn compute_hash() -> Result<String, Error>

Compute the RIHS01 type hash for this type Read more
Source§

impl<const N: usize> Send for Trigger_RequestSeq<N>

Source§

impl<const N: usize> Sync for Trigger_RequestSeq<N>

Auto Trait Implementations§

§

impl<const N: usize> Freeze for Trigger_RequestSeq<N>

§

impl<const N: usize> RefUnwindSafe for Trigger_RequestSeq<N>

§

impl<const N: usize> Unpin for Trigger_RequestSeq<N>

§

impl<const N: usize> UnsafeUnpin for Trigger_RequestSeq<N>

§

impl<const N: usize> UnwindSafe for Trigger_RequestSeq<N>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CdrSerde for T

Source§

fn serialize(&self) -> Result<Vec<u8>, Error>

Serialize to CDR-encoded bytes with encapsulation header Read more
Source§

fn serialize_with_header( &self, header: CdrEncapsulationHeader, ) -> Result<Vec<u8>, Error>

Serialize with a specific encapsulation header
Source§

fn deserialize(bytes: &[u8]) -> Result<T, Error>

Deserialize from CDR-encoded bytes Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,