pub trait Primitive:
DataType
+ Display
+ FromStr {
type T;
// Required methods
fn new<A: Into<Self::T>>(v: A) -> Self;
fn has_value(&self) -> bool;
fn value(&self) -> &Option<Self::T>;
fn set_value(self, v: Self::T) -> Self;
fn combine(&mut self, other: Self);
}
Expand description
FHIR简单类型的特性 FHIR简单类型是RUST简单数据类型的包装器
Required Associated Types§
Required Methods§
fn new<A: Into<Self::T>>(v: A) -> Self
fn has_value(&self) -> bool
fn value(&self) -> &Option<Self::T>
fn set_value(self, v: Self::T) -> Self
fn combine(&mut self, other: Self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.