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§
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
Implementations on Foreign Types§
Source§impl MetaValue for &'static str
impl MetaValue for &'static str
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>
fn typename(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
Source§impl MetaValue for bool
impl MetaValue for bool
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>
fn typename(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
Source§impl MetaValue for f64
impl MetaValue for f64
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>
fn typename(&self) -> &'static str
fn as_any(&self) -> &dyn Any
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”;
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”;