pub struct ElementPath { /* private fields */ }Expand description
ElementPath is aware of the FHIR data model and tracks its position in the tree.
It can be used to query type information of its current path.
Implementations§
Source§impl ElementPath
impl ElementPath
pub fn new(fhir_release: FhirRelease) -> ElementPath
pub fn is_empty(&self) -> bool
pub fn current_element(&self) -> Option<&str>
pub fn current_element_is_resource(&self) -> bool
pub fn current_element_is_extension(&self) -> bool
pub fn current_element_is_primitive(&self) -> bool
pub fn current_element_is_sequence(&self) -> bool
pub fn current_element_is_boolean(&self) -> bool
pub fn current_element_is_integer(&self) -> bool
pub fn current_element_is_integer64(&self) -> bool
pub fn current_element_is_unsigned_integer(&self) -> bool
pub fn current_element_is_positive_integer(&self) -> bool
pub fn current_element_is_decimal(&self) -> bool
pub fn parent_element_is_resource(&self) -> bool
pub fn parent_element_is_boolean(&self) -> bool
pub fn parent_element_is_integer(&self) -> bool
pub fn parent_element_is_integer64(&self) -> bool
pub fn parent_element_is_unsigned_integer(&self) -> bool
pub fn parent_element_is_positive_integer(&self) -> bool
pub fn parent_element_is_decimal(&self) -> bool
pub fn push(&mut self, element: &str)
pub fn pop(&mut self)
pub fn children(&self) -> Option<&'static ElementSet>
pub fn position_of_child(&self, child: &str) -> usize
Trait Implementations§
Source§impl Clone for ElementPath
impl Clone for ElementPath
Source§fn clone(&self) -> ElementPath
fn clone(&self) -> ElementPath
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ElementPath
impl RefUnwindSafe for ElementPath
impl Send for ElementPath
impl Sync for ElementPath
impl Unpin for ElementPath
impl UnwindSafe for ElementPath
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