pub struct SubComponent { /* private fields */ }Expand description
The smallest data unit in an HL7 message: a subcomponent within a component.
Implementations§
Source§impl SubComponent
impl SubComponent
Sourcepub fn new(raw: impl Into<String>) -> Self
pub fn new(raw: impl Into<String>) -> Self
Creates a subcomponent from its raw (still-encoded) string value.
Sourcepub fn raw(&self, enc: &HL7Encoding) -> Option<&str>
pub fn raw(&self, enc: &HL7Encoding) -> Option<&str>
The raw, still-encoded value (the .NET UndecodedValue), or None when
the value is the “present but null” marker.
Sourcepub fn value(&self, enc: &HL7Encoding) -> Option<String>
pub fn value(&self, enc: &HL7Encoding) -> Option<String>
The decoded value, or None when the value is “present but null”.
Trait Implementations§
Source§impl Clone for SubComponent
impl Clone for SubComponent
Source§fn clone(&self) -> SubComponent
fn clone(&self) -> SubComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubComponent
impl Debug for SubComponent
impl Eq for SubComponent
Source§impl PartialEq for SubComponent
impl PartialEq for SubComponent
Source§fn eq(&self, other: &SubComponent) -> bool
fn eq(&self, other: &SubComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubComponent
Auto Trait Implementations§
impl Freeze for SubComponent
impl RefUnwindSafe for SubComponent
impl Send for SubComponent
impl Sync for SubComponent
impl Unpin for SubComponent
impl UnsafeUnpin for SubComponent
impl UnwindSafe for SubComponent
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