Enum rustdds::dds::key::CdrEncodingMaxSize
source · pub enum CdrEncodingMaxSize {
Bytes(usize),
Unbounded,
}
Expand description
This type is used to count maximum size of a Key when serialized according to CDR but without field alignment. The purpose is to find out if the (key) type always fits into 16 bytes or not.
Variants§
Trait Implementations§
source§impl Add for CdrEncodingMaxSize
impl Add for CdrEncodingMaxSize
§type Output = CdrEncodingMaxSize
type Output = CdrEncodingMaxSize
The resulting type after applying the
+
operator.source§fn add(self, other: CdrEncodingMaxSize) -> <CdrEncodingMaxSize as Add>::Output
fn add(self, other: CdrEncodingMaxSize) -> <CdrEncodingMaxSize as Add>::Output
Performs the
+
operation. Read moresource§impl Clone for CdrEncodingMaxSize
impl Clone for CdrEncodingMaxSize
source§fn clone(&self) -> CdrEncodingMaxSize
fn clone(&self) -> CdrEncodingMaxSize
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CdrEncodingMaxSize
impl Debug for CdrEncodingMaxSize
source§impl Mul<usize> for CdrEncodingMaxSize
impl Mul<usize> for CdrEncodingMaxSize
source§impl Ord for CdrEncodingMaxSize
impl Ord for CdrEncodingMaxSize
source§fn cmp(&self, other: &CdrEncodingMaxSize) -> Ordering
fn cmp(&self, other: &CdrEncodingMaxSize) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CdrEncodingMaxSize
impl PartialEq for CdrEncodingMaxSize
source§fn eq(&self, other: &CdrEncodingMaxSize) -> bool
fn eq(&self, other: &CdrEncodingMaxSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CdrEncodingMaxSize
impl PartialOrd for CdrEncodingMaxSize
source§fn partial_cmp(&self, other: &CdrEncodingMaxSize) -> Option<Ordering>
fn partial_cmp(&self, other: &CdrEncodingMaxSize) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CdrEncodingMaxSize
impl StructuralPartialEq for CdrEncodingMaxSize
Auto Trait Implementations§
impl Freeze for CdrEncodingMaxSize
impl RefUnwindSafe for CdrEncodingMaxSize
impl Send for CdrEncodingMaxSize
impl Sync for CdrEncodingMaxSize
impl Unpin for CdrEncodingMaxSize
impl UnwindSafe for CdrEncodingMaxSize
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