pub enum WstringTerminator {
Absent,
Present,
}Expand description
C2 — whether a terminating NUL code unit is written.
It is written and counted or neither: no measured implementation writes a terminator the length does not cover, which is why this is one question and not two.
Variants§
Absent
No terminator. Eight of the nine measured implementations.
Present
A NUL code unit at the end, inside the length.
CORBA §9.3.1.6’s GIOP 1.1 rule. RTI under XCDR1 alone among the nine.
Trait Implementations§
Source§impl Clone for WstringTerminator
impl Clone for WstringTerminator
impl Copy for WstringTerminator
Source§impl Debug for WstringTerminator
impl Debug for WstringTerminator
Source§impl Default for WstringTerminator
impl Default for WstringTerminator
impl Eq for WstringTerminator
Source§impl Hash for WstringTerminator
impl Hash for WstringTerminator
Source§impl Ord for WstringTerminator
impl Ord for WstringTerminator
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 WstringTerminator
impl PartialEq for WstringTerminator
Source§impl PartialOrd for WstringTerminator
impl PartialOrd for WstringTerminator
impl StructuralPartialEq for WstringTerminator
Auto Trait Implementations§
impl Freeze for WstringTerminator
impl RefUnwindSafe for WstringTerminator
impl Send for WstringTerminator
impl Sync for WstringTerminator
impl Unpin for WstringTerminator
impl UnsafeUnpin for WstringTerminator
impl UnwindSafe for WstringTerminator
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