MetaValue

Trait MetaValue 

Source
pub trait MetaValue:
    Any
    + Debug
    + Send
    + Sync {
    // Required methods
    fn fields(&self) -> Vec<&'static str>;
    fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>;
    fn get_field_mut<'a>(
        &'a mut self,
        field: &str,
    ) -> Option<&'a mut dyn MetaValue>;
    fn get_index<'a>(&'a self, index: usize) -> Option<&'a dyn MetaValue>;
    fn get_index_mut<'a>(
        &'a mut self,
        index: usize,
    ) -> Option<&'a mut dyn MetaValue>;
    fn flatten(&self) -> Vec<&dyn MetaValue>;
    fn as_any(&self) -> &dyn Any;
    fn typename(&self) -> &'static str;
}

Required Methods§

Source

fn fields(&self) -> Vec<&'static str>

Source

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source

fn get_index<'a>(&'a self, index: usize) -> Option<&'a dyn MetaValue>

Source

fn get_index_mut<'a>( &'a mut self, index: usize, ) -> Option<&'a mut dyn MetaValue>

Source

fn flatten(&self) -> Vec<&dyn MetaValue>

Source

fn as_any(&self) -> &dyn Any

Source

fn typename(&self) -> &'static str

Implementations on Foreign Types§

Source§

impl MetaValue for &'static str

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

impl MetaValue for bool

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

impl MetaValue for f64

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

impl MetaValue for i64

067 public static final String FP_String = “http://hl7.org/fhirpath/System.String”; 068 public static final String FP_Boolean = “http://hl7.org/fhirpath/System.Boolean”; 069 public static final String FP_Integer = “http://hl7.org/fhirpath/System.Integer”; 070 public static final String FP_Decimal = “http://hl7.org/fhirpath/System.Decimal”; 071 public static final String FP_Quantity = “http://hl7.org/fhirpath/System.Quantity”; 072 public static final String FP_DateTime = “http://hl7.org/fhirpath/System.DateTime”; 073 public static final String FP_Time = “http://hl7.org/fhirpath/System.Time”;

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

impl MetaValue for u64

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

impl MetaValue for String

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

impl<T> MetaValue for Option<T>
where T: MetaValue,

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn get_index<'a>(&'a self, index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

impl<T> MetaValue for Box<T>
where T: MetaValue,

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn get_index<'a>(&'a self, index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

impl<T> MetaValue for Vec<T>
where T: MetaValue,

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index<'a>(&'a self, index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn typename(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Implementors§