pub enum WstringUnitWidth {
Two,
Four,
}Expand description
C3 — how wide one UTF-16 code unit is on the wire.
The transmission code set’s width. No GIOP version fixes it and XTypes Table 31 fixes it at two, so it varies independently of C1 and C2 — which is why these are three types and not one enumeration of named forms.
Not WcharWidth, and the difference is measured:
rmw_cyclonedds_cpp 1.3.4 writes a two-octet scalar wchar and
four-octet wstring code units, so the scalar’s width is its own
axis. See zerodds_ast_layout::WcharWidth.
Variants§
Two
Two octets. XTypes Table 31, Cyclone, OpenDDS, Fast DDS, omniORB, JacORB.
Four
Four octets, a code unit zero-extended — not a code point,
so U+1D11E stays the surrogate pair 34d80000 1edd0000. RTI
under XCDR1, TAO, and both ROS type supports.
Implementations§
Trait Implementations§
Source§impl Clone for WstringUnitWidth
impl Clone for WstringUnitWidth
impl Copy for WstringUnitWidth
Source§impl Debug for WstringUnitWidth
impl Debug for WstringUnitWidth
Source§impl Default for WstringUnitWidth
impl Default for WstringUnitWidth
impl Eq for WstringUnitWidth
Source§impl Hash for WstringUnitWidth
impl Hash for WstringUnitWidth
Source§impl Ord for WstringUnitWidth
impl Ord for WstringUnitWidth
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WstringUnitWidth
impl PartialEq for WstringUnitWidth
Source§impl PartialOrd for WstringUnitWidth
impl PartialOrd for WstringUnitWidth
impl StructuralPartialEq for WstringUnitWidth
Auto Trait Implementations§
impl Freeze for WstringUnitWidth
impl RefUnwindSafe for WstringUnitWidth
impl Send for WstringUnitWidth
impl Sync for WstringUnitWidth
impl Unpin for WstringUnitWidth
impl UnsafeUnpin for WstringUnitWidth
impl UnwindSafe for WstringUnitWidth
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